Advertisement
tinyevil

Untitled

Dec 10th, 2017
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. Known Issues:
  2.  
  3. - (source path="true") printed as source=(path "true")
  4. Changes in pair syntax:
  5. x = y
  6. parsed as
  7. (x \= y)
  8. ^
  9. a symbol with '=' as its content
  10.  
  11. - It is not possible to encode an empty symbol
  12. Solutions:
  13. \e , as in "epsilon" for empty symbol
  14. \$ , as in regular expression
  15.  
  16. - Symbol '=' is special in pairs
  17. Not a big issue, mostly affects pretty printing.
  18.  
  19. - Newline encoding in multiline strings / comments
  20. Analyze string contents and only print it as a multiline
  21. if all newlines match output's newline sequence.
  22.  
  23. - It is not possible to encode empty multiline comments
  24. - Multiline comments starting with = or \ are ugly
  25. Reserve characters {} and use them for the comments
  26. Remove single line comments
  27.  
  28. Comments are:
  29. {...}
  30. {{...}}
  31. {{{...}}}
  32. ...
  33. If there is a whitespace immediately after the last {, it is consumed as part of the
  34. 'start comment' token.
  35. If there is a whitespace immediately before the first }, it is consumed as part of the
  36. 'end comment' token.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement