antlr3
How to recognize English words via ANTLR?
开发者_开发问答I would like to determirmine if a word is in a large list of keywords (vulgar and so on) and a parser should be a good solution (it should be fast as far as I know) because I need a few[详细]
2023-03-29 21:39 分类:问答ANTLR: Define new channel in grammar
I know it is possible to switch between the default and hidden token channels in an ANTLR grammar, but lets say I want a third channel. How can I define a new token channel in the gramar?For instance,[详细]
2023-03-29 07:00 分类:问答How to disable error recover in antlr3
If we don\'t want parser to \'recover\' from errors, how to disable recovery and just let excepti开发者_C百科on slip out in antlr3 ?[详细]
2023-03-28 15:58 分类:问答ANTLR Matching all tokens except
Is there any way to match a token in antlr except a specific one? I have a rule which states that a \'_\' can be an ID. Now I have a specific situation in which I want to match an ID, but in this par[详细]
2023-03-28 14:24 分类:问答Multiple alternatives with the same label, only the last gets anything assigned to it
I have some non-reserved keywords I\'m matching with rules like: kFOO = {self.input.LT(1).text.lower() == \'foo\'}? ID;[详细]
2023-03-28 06:55 分类:问答Error when compiling with ANTLR in Visual C# Express 2010
I\'m trying to build an application in C# that parses (using ANTLR) a C source file and returns me an AST with all the functions and stuff.[详细]
2023-03-27 06:27 分类:问答How to change token type in parser rule in ANTLR using CSharp3 language
I am using ANTLR 3.3 with langage CSharp3. In my token types, I have a tokens called WORD, UTTAR, PRADESH, UPABBR among others. I also have a rule as follows[详细]
2023-03-22 23:51 分类:问答how to create token file from grammar file in antlr
I am creating a DSL using antlr. Lexer and Parser are written in one grammar file(say layout.g). Tree grammar is written in another grammar file (say layoutTree.g). Now Tree parser is not properly par[详细]
2023-03-22 23:44 分类:问答antlr parsing fails inside a generated syntactic predicate
I have a grammar with backtrack=true similar to the following: start: subrules+; subrules: ... rule1 ...[详细]
2023-03-21 17:09 分类:问答Adobe Alchemy returning C data structures
I have lexer/parser (Generated from an ANTLR grammar file) which (for performance reasons) I have compiled to C code which will be included into my actionscript project using Adobe Alchemly.[详细]
2023-03-21 15:34 分类:问答