Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (= ^.^ =)
- == Symbols
- id
- hyphen-is-fine-too
- actually?any:non*whitespace-is-fine!
- even\ whitespaces\ are\ fine\ if\tescaped\nproperly
- == Null, true and false are regular symbols
- == with no special meaning
- null
- true
- false
- == Numbers are regular symbols too,
- == its up to the reader
- == how to interpret them
- 256
- -256
- == Strings
- == A regular json-like string:
- "This is a\nstring"
- == Multiline raw string:
- """
- This is a string too.
- Escape sequences are ignored,
- this is parsed exactly as backslash n: \n
- """
- == For a raw strings containing a sequnce of n quotes,
- == you can do n+1 quotes
- """"
- Its ok to have three
- quotes inside this
- multiline string: """
- """"
- == A list is just a sequence of
- == values inside the parentheses
- (1 2 3 "test")
- (=
- Special syntax for
- (pair X Y)
- is
- X = Y
- =)
- x = 2
- y = 44
- "string key" = (list value)
- (=
- An example of a real world config file
- =)
- (module
- name = "showcase"
- version = "0.0.1"
- sources = (
- (source-path path="src")
- (source-path path="vendor-src" flags=("-O2" "-Wall"))
- )
- dependencies = (
- (dependency name="base" version="1.0+")
- (dependency name="foo" version="1.1.2")
- (dependency name="bar" version="0.3")
- )
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement