Most effective way to parse C-like definition strings?

前端 未结 5 1189
滥情空心
滥情空心 2021-01-13 08:24

I\'ve got a set of function definitions written in a C-like language with some additional keywords that can be put before some arguments(the same way as \"unsigned\" or \"re

5条回答
  •  说谎
    说谎 (楼主)
    2021-01-13 08:59

    ANTLR is commonly used (as are Lex\Yacc).

    ANTLR, ANother Tool for Language Recognition, is a language tool that provides a framework for constructing recognizers, interpreters, compilers, and translators from grammatical descriptions containing actions in a variety of target languages.

提交回复
热议问题