Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- This sentence prints just fine!
- -- Code declaration in block form, this is a single line comment.
- -- No need for line ending definitions like ;
- -- unless you want to with |
- @/
- drug = Coffee
- cure = sleep
- /@
- When I take @drug I have to @cure.
- -- This prints: "When I take Coffee I have to sleep."
- -- Left hand values are assumed to be variables always.
- -- Right hand values are assumed to be plain text unless the @ is used.
- -- Declaring variables in one line.
- @- newDrug = @drug | otherStuff = Yep /-- anything on this line is considered code.
- Everything else is simply printed.
- @/
- someArray =(
- this,
- that,
- the other thing,
- some text with a \, in it /-- Standard escape for a comma
- )
- someNumber = [1+2+3+4] /-- This would be 10
- mathWithText = [@someNumber-3] /-- This would be 7
- badMath = @someNumber-4 /-- This would be '10-4'
- weirdMath = [@badMath] /-- This would interpret [10-4] as math and be 6
- calcsAndText = [1+@weirdMath] bees /-- This would be '7 bees'
- /@
- -- in-line code stuffs
- -- Arrays start at 1, and math can be done in-line
- @(someArray|1) is some inserted text and @(0*4 1+1) numbers.
- -- This prints: 'this is some inserted text and 0 2 numbers.'
- -- PHP style block text.
- @- someHugeText =<
- This whole thing is just normal test
- even line breaks. @this wont work either.
- >
- -- Technically that was all on one line so no need for a code block.
Advertisement