antlr3 Questions
2
Is there NOT logic in ANTLR? Im basically trying to negate a rule that i have and was wondering if its possible, also is there AND logic?
Mayan asked 3/4, 2011 at 21:13
2
Solved
During taking advantage of ANTLR 3.3, I'm changing the current grammar to support inputs without parenthesis too. Here's the first version of my grammar :
grammar PropLogic;
NOT : '!' ;
OR : '+...
Devoirs asked 2/4, 2011 at 10:20
1
Solved
I'm trying to write a grammar to parse Media wiki's wiki syntax, and after this the Creole syntax too (unfortunately an existing Creole grammar doesn't work in Antlr 3).
My issue right now is bein...
1
Solved
Firstly I know this grammar doesn't make sense but it was created to test out the ANTLR rule priority behaviour
grammar test;
options
{
output=AST;
backtrack=true;
memoize=true;
}
rule_list_i...
1
Solved
I'm having trouble getting the "@header" or any other @ rule to work in ANTLR. With a very basic grammer, like this:
grammar test;
options {
language = CSharp2;
}
@header {
using System.Collec...
1
Solved
I want to create a token from '..' in the ANTLR3 lexer which will be used to string together expressions like
a..b // [1]
c .. x // [2]
1..2 // [3]
3 .. 4 // [4]
So, I have added,
DOTDOTSEP : ...
1
Solved
I was having difficulty figuring out what does ^ and ! stand for in ANTLR grammar terminology.
Proudfoot asked 12/8, 2010 at 9:45
2
Solved
What is a semantic predicate in ANTLR?
2
Solved
I need a little guidance in writing a grammar to parse the log file of the game Aion. I've decided upon using Antlr3 (because it seems to be a tool that can do the job and I figured it's good for m...
Mandrill asked 12/5, 2010 at 10:27
2
Solved
I am attempting to get a basic ECMAScript parser working, and found a complete ANTLR grammar for ECMAScript 3, which appears to compile ok and produces the appropriate Lexer/Parser/Walker Java file...
Cornejo asked 24/11, 2009 at 20:28
2
Solved
I am trying to pick out all tokens in a text and need to match all Ascii and Unicode characters, so here is how I have laid them out.
fragment CHAR : ('A'..'Z') | ('a'..'z');
fragment DIGIT : ('0'...
2
Solved
I want to generate C code. I will not be reading from an input file, one line at a time (as, for instance, a compiler might). Rather, I will be parsing user input as it arrives, one line at a time....
2
Solved
I'm still on my quest for a really simple language and I know now that there are none. So I'm writing one myself using ANTLR3.
I found a really great example in this answer:
Exp.g:
grammar Exp...
© 2022 - 2024 — McMap. All rights reserved.