Re: Lua syntax ambiguity
"'Sewbacca' via lua-l" <[email protected]>
| Newsgroups | gmane.comp.lang.lua.general |
|---|---|
| Message-ID | <[email protected]> |
Forgive me if I haven't understood your problem properly, but the problem is about the very last step in the process. I suggest you have two phases one for generating the token stream, so separation is clear and another one to generate the resulting string. There concatenate two tokens and see if by reparsing it you get those two tokens back, if not add a space. So [[[ would be detected as not being the same as [ [[. ~ Sewbacca -- You received this message because you are subscribed to the Google Groups "lua-l" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/lua-l/564f11e9-bea5-4aa5-a587-6586e55f4bb6%40kolabnow.com.