Closed mastir closed 1 year ago
There is is already a read_bison()
method for C++. I can expose that to PHP if you like.
yes, this would be great, thanks!
I have created a pull request. The method is readBison("%%\nstart: 'a';\n%%\n");
@BenHanson a follow up question - do you think something similar would be possible for Lexer? I guess this would first need some support in lexertl
or most likely this might need something PHP specific (if referring to something like flex syntax).
Thansk
Definitely possible, see build_config_parser()
in https://github.com/BenHanson/gram_grep/blob/master/main.cpp
I will look into doing a dump()
function for rules first.
Hey, i`m working to implement some templating with php expression support. As for now i have to rewrite parts of zend_language_parser.y to php method calls. This can be match easer to load it from bison/yakk format (without C calls for sure) Like one i got as result of dump() method call: