antlr3
What does ^ and ! stand for in ANTLR grammar
I was开发者_开发技巧 having difficulty figuring out what does ^ and ! stand for in ANTLR grammar terminology.Have a look at the ANTLR Cheat Sheet:[详细]
2023-01-11 11:31 分类:问答ANTLR - Implicit AND Tokens In Tree
I’m trying to build a grammar that interprets user-entered text, search-engine style.It will support the AND, OR, NOT and ANDNOT Boolean operators.I have pretty much everything working, but I want to[详细]
2023-01-10 11:07 分类:问答An antlr problem with embedded comments
I am trying to implement a nested comment in D. nestingBlockComment : \'/+\' (options {greedy=false;} :nestingBlo开发者_如何转开发ckCommentCharacters)* \'+/\' {$channel=HIDDEN;}; // line 58[详细]
2023-01-08 07:35 分类:问答Antlr - Object reference not set to an instance of an object
Does anyone know anything about how Antlr works? I\'m getting an error on a dev server: [NullReferenceException: Object reference not set to an instance of an object.][详细]
2023-01-06 12:57 分类:问答why does 'a'..'z' in ANTLR match wildcards like $ or £
When I run the following grammer: test : WORD+; WORD : (\'a\'..\'z\')+; WS : \' \'+ {$channel = HIDDEN;};[详细]
2023-01-06 09:28 分类:问答scanning binary files in antlr3
I would like to parse a binary file and specify the characters in hex format instead of unicode, is thi开发者_运维问答s possible?[详细]
2023-01-04 12:46 分类:问答What is a 'semantic predicate' in ANTLR?
What is a semantic predicate开发者_开发百科 in ANTLR?ANTLR 4 For predicates in ANTLR 4, checkout these stackoverflow Q&A\'s:[详细]
2023-01-04 04:56 分类:问答how to check an ANTLR token is only used once or less in the parser
In Antlr, if I have a rule for example: someRule : TOKENA TOKENB; it would accept : \"tokena tokenb\" if I would like TOKENA to be optional, I can say,[详细]
2023-01-04 00:26 分类:问答Parsing ambiguous input with Antlr
I have been trying for a few days to parse some text that consists of text and numbers (I\'ve called it a sentence in my grammar).[详细]
2023-01-03 20:13 分类:问答ANTLR: simple example from ANTLRWorks wizard doesn't work
Grammar: grammar test; WS:( \' \' \'\\t\' \'\\r\' \'\\n\' ) {$channel=HIDDEN;} ; STRING :\'\"\' ( ESC_SEQ | ~(\'\\\\\'|\'\"\') )* \'\"\'[详细]
2023-01-03 09:18 分类:问答