parsing - Most effective way to parse C-like definition strings? -
I have found a set of function definitions written in a C-like language with a few additional keywords before that Logic can be kept (similar to "unsigned" or "register" for example) and I need to analyze these functions along with these rows and generate actual code from them.
-
Is it right that Flex / YAACP is the most appropriate way to do this?
-
Is it slow to write a shell or a Python script, which by using regexps (which can be a big pain, as I think, if additional The number of keywords gets bigger and their impact will vary) provided I experience zero with the analyzer / parser (though I know how LALR works)?
-
Is there any such problem that is on Lex / YACC?
is commonly used (like Lex Yak).
ANTLR is another tool for language recognition, a language tool that provides a framework for creating identifiers, interpreters, compilers and translators with grammatical details in various types of targeting. is.
Comments
Post a Comment