Advertisement
tinyevil

Untitled

Dec 8th, 2017
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. (= ^.^ =)
  2.  
  3. == Symbols
  4. id
  5. hyphen-is-fine-too
  6. actually?any:non*whitespace-is-fine!
  7. even\ whitespaces\ are\ fine\ if\tescaped\nproperly
  8.  
  9. == Null, true and false are regular symbols
  10. == with no special meaning
  11. null
  12. true
  13. false
  14.  
  15. == Numbers are regular symbols too,
  16. == its up to the reader
  17. == how to interpret them
  18. 256
  19. -256
  20.  
  21. == Strings
  22. == A regular json-like string:
  23. "This is a\nstring"
  24.  
  25. == Multiline raw string:
  26. """
  27. This is a string too.
  28. Escape sequences are ignored,
  29. this is parsed exactly as backslash n: \n
  30. """
  31.  
  32. == For a raw strings containing a sequnce of n quotes,
  33. == you can do n+1 quotes
  34. """"
  35. Its ok to have three
  36. quotes inside this
  37. multiline string: """
  38. """"
  39.  
  40. == A list is just a sequence of
  41. == values inside the parentheses
  42. (1 2 3 "test")
  43.  
  44. (=
  45. Special syntax for
  46. (pair X Y)
  47. is
  48. X = Y
  49. =)
  50.  
  51. x = 2
  52. y = 44
  53. "string key" = (list value)
  54.  
  55. (=
  56. An example of a real world config file
  57. =)
  58. (module
  59. name = "showcase"
  60. version = "0.0.1"
  61.  
  62. sources = (
  63. (source-path path="src")
  64. (source-path path="vendor-src" flags=("-O2" "-Wall"))
  65. )
  66.  
  67. dependencies = (
  68. (dependency name="base" version="1.0+")
  69. (dependency name="foo" version="1.1.2")
  70. (dependency name="bar" version="0.3")
  71. )
  72. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement