GenuineSounds

REALLY bored.

May 25th, 2014
349
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. This sentence prints just fine!
  2.  
  3. -- Code declaration in block form, this is a single line comment.
  4. -- No need for line ending definitions like ;
  5. -- unless you want to with |
  6. @/
  7. drug = Coffee
  8. cure = sleep
  9. /@
  10.  
  11. When I take @drug I have to @cure.
  12. -- This prints: "When I take Coffee I have to sleep."
  13.  
  14. -- Left hand values are assumed to be variables always.
  15. -- Right hand values are assumed to be plain text unless the @ is used.
  16.  
  17. -- Declaring variables in one line.
  18. @- newDrug = @drug | otherStuff = Yep /-- anything on this line is considered code.
  19.  
  20. Everything else is simply printed.
  21.  
  22. @/
  23. someArray =(
  24. this,
  25. that,
  26. the other thing,
  27. some text with a \, in it /-- Standard escape for a comma
  28. )
  29. someNumber = [1+2+3+4] /-- This would be 10
  30. mathWithText = [@someNumber-3] /-- This would be 7
  31. badMath = @someNumber-4 /-- This would be '10-4'
  32. weirdMath = [@badMath] /-- This would interpret [10-4] as math and be 6
  33. calcsAndText = [1+@weirdMath] bees /-- This would be '7 bees'
  34. /@
  35.  
  36. -- in-line code stuffs
  37. -- Arrays start at 1, and math can be done in-line
  38. @(someArray|1) is some inserted text and @(0*4 1+1) numbers.
  39. -- This prints: 'this is some inserted text and 0 2 numbers.'
  40.  
  41. -- PHP style block text.
  42. @- someHugeText =<
  43. This whole thing is just normal test
  44. even line breaks. @this wont work either.
  45. >
  46. -- Technically that was all on one line so no need for a code block.
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment