On Tue, Sep 27, 2011 at 2:49 PM, Michael Foord <[email protected]> wrote: ... > > You may want your grammar to preserve whitespace in the tokens (rather than > discarding) - unless you're happy to lose / change whitespace when round > tripping.
Yeah ideally I'd like the round trip to look similar, including the level indentation. The use case is a web editor where you can change pieces of an already loaded AST, and have the DSL rendered back and forth. If the first sync changes the initial text after the first tokenization, it's fine I guess. > Michael > >> >> Cheers >> Tarek >> -- >> Tarek Ziadé | http://ziade.org >> >> -- >> You received this message because you are subscribed to the Google Groups >> "ply-hack" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/ply-hack?hl=en. >> > > > > -- > > http://www.voidspace.org.uk/ > > May you do good and not evil > May you find forgiveness for yourself and forgive others > > May you share freely, never taking more than you give. > -- the sqlite blessing http://www.sqlite.org/different.html > > -- > You received this message because you are subscribed to the Google Groups > "ply-hack" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/ply-hack?hl=en. > -- Tarek Ziadé | http://ziade.org -- You received this message because you are subscribed to the Google Groups "ply-hack" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/ply-hack?hl=en.
