grammar
ANTLR grammar problem with parenthetical expressions
I\'m using ANTLRWorks 1.4.2 to create a simple grammar for the purpose of evaluating an user-provided expression as boolean result.This ultimately will be part of a larger grammar, but I have some que[详细]
2023-03-02 17:08 分类:问答How to match a fixed number of characters in ANTLR 3?
I want to parse ISO 8601 dates in my ANTLR grammar. 2001-05-03 I have the following entries in my grammar file:[详细]
2023-03-02 01:17 分类:问答ANTLR syntax error unexpected token: plus
Hi I have a small problem in my ANTLR tree grammar. I am using ANTLRWorks 1.4. In parser grammar I have the rule like this:[详细]
2023-03-02 00:35 分类:问答Constructing a Follow Set
While creating a first set for a given grammar, I noticed a scenario not described in my reference for the algorithm.[详细]
2023-03-01 02:32 分类:问答Basic Punctuation Symbol Errors
I\'m receiving data from my database, and I\'m showing it 开发者_如何学Gothrough echo statements, but for some reason all the basic punctuation eg (\',\") are all returning small diamonds with Questio[详细]
2023-02-28 08:20 分类:问答Tool/Application to calculate first and follow sets
I am currently working on a parser and it seems that I have made a few mistakes druing the follow set calculation. So I was wondering if someone know a good tool to calculate follow and first sets so[详细]
2023-02-27 16:55 分类:问答Is there an existing ANTLR or IRONY grammar for R?
Does anyone know if there is an existing existing ANTLR or IRONY grammar for R? Many than开发者_如何学Goks.I\'ve built an R grammar for the early access \"Honey Badger\" ANTLR v4 release, if you\'d l[详细]
2023-02-27 07:42 分类:问答Any differences between terms parse trees and derivation trees?
The terms AST (Abstract Syntax Tree), parse tree and derivation tree are bandied about by different people when referring to the result of parsing texts conforming to a grammar. Assuming we are talkin[详细]
2023-02-27 01:55 分类:问答Translate ANTLR grammar into XText grammar: how to remove syntactic predicates
I\'m new to both Xtext and ANTLR. I need to translate an ANTLR (.g) grammar into an XTEXT (.xtext) grammar. In the ANTLR grammar there are syntactic predicates which are not supported by Xtext.[详细]
2023-02-27 01:19 分类:问答Bison - additional parameter to a push and pure parser
How can I pass one aditional parameter (not the token minor of type YYSTYPE) to the yypush_parse() function?[详细]
2023-02-26 13:46 分类:问答
加载中,请稍侯......