[cedet-semantic] Full parser / partial parser
Brought to you by:
zappo
From: kototama k. <kot...@gm...> - 2013-01-29 09:11:03
|
Hello, Erik wrote on this list that it would be too slow to have a full parser within semantic ; so I'm developing only what is needed to parse functions and packages definitions. However, in a few cases, I would like to fully parse some definitions, like the definition of the project, which can be arbitrary Clojure code. The first rule of my grammar is of the type sexpr | PAREN_BLOCK | STRING ... ; but does not contain the full definition of what is an s-expression in Clojure. Would it make sense to have a sexpr_full rule which would be "invoked" when I need to do a full parser within the grammar? Also, if I need to parse some code with Emacs Lisp code, how could I invoke parsing with the sexpr_full and not the top rule? What I mean by full parsing is a parsing of all element and the construction of an AST, not the generation of tags. |