|
|
|
|
|
by Joker_vD
1064 days ago
|
|
> a context-sensitive grammar with unbounded lookaheads You may want to look at chibicc, a toy (but self-hosting) C compiler written in C, which treats C grammar as if it was pretty much that. Of course, the sane way is to not invent languages that can be naturally described only by a context-sensitive grammar with unbounded lookahead. |
|
But I wholeheartedly agree with the sentiment of "don't make the grammar look like Scala" <3