antlr
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 分类:问答How to convert JavaScript code to a xml representation of the ast?
I am building an XML serializer of JavaScript Abstract Syntax Trees with ANTLR. The generator is quite complete but I would like to know if there are any conventions about some issues such as:[详细]
2023-03-22 13:49 分类:问答ANTLR: Heterogeneous AST and imaginary tokens
it\'s my first question here :) I\'d like to build an heterogeneous AST with ANTLR for a simple grammar. There are different Interfaces to represent the AST nodes, e. g. IInfiExp, IVariableDecl. ANTL[详细]
2023-03-22 06:08 分类:问答goto statement in antlr?
I would really appreciate if someone could give me advice,or point me to tutorial, or sample implementation, anything that could help me implement basic goto statement in ANTLR?[详细]
2023-03-22 05:11 分类:问答Extracting recursion in ANTLR
I\'ve got a grammar in ANTLR and don\'t understand how it can be recursive. Is there any way to get ANTLR to show the derivation that it used to see that my rules are recursive?[详细]
2023-03-22 00:08 分类:问答ANTLR ambiguous reference
When I compile the following ANTLR grammar file, conditional_expression : (logical开发者_如何学Python_or_expression -> logical_or_expression) (\'?\' expression \':\' rhs=conditional_expression -&g[详细]
2023-03-21 23:48 分类:问答Which Parser can parse poker-log files, which one is the easiest and best? (Need alternative for Spirit. Gold Parser, ANTLR or ...) [closed]
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely solicit debate, a[详细]
2023-03-21 23:06 分类:问答Passing parameter to parser rule in GUnit
I have a parser rule in ANTLR that takes a parameter. tincture [Tinctures tinctures] returns [Tincture tincture][详细]
2023-03-21 18:22 分类:问答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 分类:问答