glycerine / zygomys

Zygo is a Lisp interpreter written in 100% Go. Central use case: dynamically compose Go struct trees in a zygo script, then invoke compiled Go functions on those trees. Makes Go reflection easy.
https://github.com/glycerine/zygomys/wiki
BSD 2-Clause "Simplified" License
1.71k stars 81 forks source link

parser should repect raw string literals over multiple lines #2

Closed glycerine closed 8 years ago

glycerine commented 8 years ago

the new parser doesn't respect raw strings when they don't fit on one line.

zygo> ` hello
zygo>  there `

and while when nested in an expression the parser recognizes them

zygo> (def hi `
... greetings
...  from 
...  planet 
...  zygo1
... `
... )
`greetings from  planet  zygo1`
zygo> 

above the newlines should not be ignored