Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Afaik both Lua and Python are context-free.


How would you implement Lua's long-string syntax in a context-free grammar?

    str = [==[foo]bar]=]baz]==]
Been trying to puzzle this one out.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: