the approach of having your parser written in a DSL inside a string is so jarringly modern to see used in C.
But then what’s jarring in the other direction is how the lexer uses some behind-the-scenes global state instead of an explicit instance: clexRegisterKind("return", RETURN) :/
clexRegisterKind("return", RETURN)
Issue created. Will look into fixing it when I have time.
Is it possible to construct the grammar manually with a C API instead of strings?
Not yet, but if you make an issue in GitHub I might look into implementing it.
Cool! I may or may not have time/energy but no pressure. It’s an idle question
the approach of having your parser written in a DSL inside a string is so jarringly modern to see used in C.
But then what’s jarring in the other direction is how the lexer uses some behind-the-scenes global state instead of an explicit instance:
clexRegisterKind("return", RETURN)
:/Issue created. Will look into fixing it when I have time.
Is it possible to construct the grammar manually with a C API instead of strings?
Not yet, but if you make an issue in GitHub I might look into implementing it.
Cool! I may or may not have time/energy but no pressure. It’s an idle question
Issue created. Will look into fixing it when I have time.