In the realm of code, Shakespeare++ doth reign, a language so tender, that toucheth the very heart, With words most noble and syntax most poetic, it transforms the art of programming into a sonnet of logic and elegance.
Prithee, try our VSCode extension.
And verily, explore our online playground.
Ensure thy Node.js hath been setup upon thou device
Open thy terminal and inscribe thy following command:
npm install -g shakespeareplusplusShouldst thou be met with a permission error, thou might need to prefix the command with sudo to grant it proper authority.
sudo npm install -g shakespeareplusplusOpen thy Powershell in administrator mode and inscribe thy following command:
npm install -g shakespeareplusplus Execute thy command to run thou script
Set-ExecutionPolicy RemoteSignedLearneth more about Powershell ExecutionPolicy
Invoke this command to discern the location of Node.js upon thine system, and thus add it to thy Path Environment Variable (add the "folder" where node.js is installed)
node -p "process.execPath"To commence thy execution of thou script
shakespeare++
shakespeare++ <filename>granteth yonder varName withUtmostRespectgranteth yonder varName equivalethTo value withUtmostRespect steadFast yonder varName equivalethTo value withUtmostRespectgranteth yonder arr[] equivalethTo {10 20 "30" ...} withUtmostRespectAccess first element
arr addethPolitelyWith 0Access second element
arr addethPolitelyWith 1summonThouMechanism function(parameter1 invokeThouComma parameter2...) {
<statements>
<last statement will automatically be returned
}Demonstration: Behold! thy sum of two numerical values
summonThouMechanism sum(x invokeThouComma y){
x addethPolitelyWith y
}granteth yonder obj equivalethTo {
shake summonThyColon 10 invokeThouComma
speare summonThyColon "plusplus" invokeThouComma
sum summonThyColon summonThouMechanism s(x invokeThouComma y) {
x addethPolitelyWith y
}
} withUtmostRespect
printethThouWordsForAllToSee(obj fullethStop shake)
printethThouWordsForAllToSee(obj fullethStop speare)
printethThouWordsForAllToSee(obj fullethStop sum(10 invokeThouComma 20))will runneth thy loop 10 times
forsoothCyclethThroughThyRange(
granteth yonder i equivalethTo 0 withUtmostRespect
i `lessThanThou` 10 withUtmostRespect
i equivalethTo i addethPolitelyWith 1 withUtmostRespect) {
<statements>
}Note: don't forget the `` in lessThanThou
whilstThouConditionHolds(*condition*) {
<statements>
}providethThouFindestThyConditionTrue(*condition*) {
<statements>
}elsewiseRunnethThis {
<statements>
}providethThouFindestThyConditionTrue(*condition*) {
<statements>
} elsewiseRunnethThis {
<statements>
}providethThouFindestThyConditionTrue(*condition*) {
<statements>
} elsewiseRunnethThis providethThouFindestThyConditionTrue(*condition*) {
<statements>
}ashollowAsAFoolsHead
asFalseAsAFlimsyFabric
asTrueAsTheLightOfDay
equivalethTo
addethPolitelyWith
subtractethPolitelyWith
multiplethPolitelyWith
dividethPolitelyWith
modulethPolitelyWith
Note: Don't forget the ` at the start and end
`andeth``either``equivalethTo``notEquivalethTo``lessThanThou``greaterThanThou``lessThanEquivalethToThou``greaterThanEquivalethToThou`fullethStopinvokeThouCommasummonThyColonwithUtmostRespectcalculationShenanigans fullethStop unveilThyAbsoluteWorth(value)calculationShenanigans fullethStop revealThouRootsWhimsy(value)calculationShenanigans fullethStop witnessThisErrantDigit(min invokeThouComma max)calculationShenanigans fullethStop logOfTwosMeasure(value)calculationShenanigans fullethStop logOfTenFold(value)calculationShenanigans fullethStop greatestOfThemAll(val1 invokeThouComma val2...)Note: can take any number of arguments
calculationShenanigans fullethStop littlestOfThemAll(val1 invokeThouComma val2...)Note: can take any number of arguments
revealThyTime()Note: returns the current timestamp in milliseconds since (January 1, 1970, 00:00:00 UTC)
readethThineStringInput()readethThineNumInput()summonYonFile("filename.spp")scribeThyThoughtsInSecretLines
*anything*
endethSecretLines-
Thanks be unto thee, tylerlaceby, for the wondrous series thou hast bestowed.
-
Gratitude be unto thee, FaceDev, for the inspiration thou hast bestowed.