antlr3 Questions
7
Solved
Let's say that I want to match "beer", but don't care about case sensitivity.
Currently I am defining a token to be ('b'|'B' 'e'|'E' 'e'|'E' 'r'|'R') but I have a lot of such and don't really wan...
3
Solved
I have a asp.net MVC 4 project with MEF and RavenBD.
When the project loads it throws this exception : Could not load file or assembly Antlr3.Runtime.dll
I have found that both RavenDB and WebGre...
Ferrigno asked 8/11, 2012 at 20:37
6
Solved
I am writing an expression parser for an app written mostly in Scala. I have built AST objects in Scala, and now need to write the parser. I have heard of Scala's built-in parser combinators, and a...
Wormseed asked 15/5, 2011 at 20:46
2
Solved
This is my first try with cmake and I would like to have, if possible, some feedbacks about what I did since some problems remain.
In the CMakeLists.txt of the library folder, I created two makefi...
Bouffard asked 12/5, 2011 at 0:1
4
I'm trying to learn ANTLR and at the same time use it for a current project.
I've gotten to the point where I can run the lexer on a chunk of code and output it to a CommonTokenStream. This is wor...
Invoice asked 9/2, 2010 at 11:57
5
Solved
I'd like to get started with ANTLR, but after spending a few hours reviewing the examples at the antlr.org site, I still can't get a clear understanding of the grammar to Java process.
Is there so...
4
Solved
So I've been making a grammar in Eclipse with ANTLR v3.4 and I've made one that works and I want to make sure when I edit it everything still works. I can go into the interpretter everytime but tha...
5
Solved
I updated all the packages of my MVC project and I got the following error:
Could not load file or assembly 'Antlr3.Runtime, Version=3.5.0.2,
Culture=neutral, PublicKeyToken=eb42632606e9261f' o...
Ogive asked 7/1, 2014 at 17:56
2
Solved
I'm using ANTLR V3 to produce C# code for DSL language.
The produced code contain the attribute CLSCompliant on both laxer and parser classes which cause a warning to be generated because my proje...
Carouse asked 21/12, 2011 at 13:16
1
Solved
I am working with ANTLR4 to generate AST of a java source code and i had to move to ANTLR3 because i was not getting much help and documentation and it was really tough to proceed.I managed to gene...
Anemometry asked 25/1, 2018 at 4:54
1
Are there any good CSS grammars out there for antlr4? I know there are some grammars for antlr3, but it turns out CSS is not trivial to parse without "lexer modes", which were added in v4. Why?
Co...
4
We have an ASP.NET application that was written by a former employee that I have thus far been holding together with duct tape. The app was written with MVC, NHibernate and some other processes, no...
Garrettgarrick asked 26/6, 2012 at 23:36
4
1
Solved
I'm trying to parse a Nested Boolean Expression and get the individual conditions within the expression separately. For e.g., if the input string is:
(A = a OR B = b OR C = c AND ((D = d AND E = e...
2
Solved
I have written a grammar for vaguely Java-like DSL. While there are still some issues with it (it doesn't recognize all the inputs as I would want it to), what concerns me most is that the generate...
Elisabetta asked 18/11, 2013 at 20:20
6
Solved
I've noticed a distinct lack of LL parsers that create parsers in functional languages. The ideal find for what I've been looking for without success is something to generate a Haskell parser for a...
Adorne asked 31/3, 2011 at 23:37
2
Solved
ANTLR generates java source from the grammar file. Generated source has dependency to ANTLR classes.
Can I generate 'clean' java sources using ANTLR, that do not have any antlr - dependecy?
If no...
3
Solved
I use the normal whitespace separation into the hidden channel but I have one rule where I would like to include any whitespace for later processing but any example I have found requires some very ...
Satanic asked 21/4, 2011 at 8:59
1
I have written a grammar but getting a left recursive error.
grammar Lang;
options
{
output = AST;
language = C;
ASTLabelType= pANTLR3_BASE_TREE;
backtrack = true;
}
start : primary_expressi...
Salbu asked 22/2, 2013 at 7:26
1
Solved
I have upgraded from Antlr 3 to Antlr 4. I was using this code to catch exceptions using this code. But this is not working for Antlr 4.
partial class XParser
{
public override void ReportError(...
1
Solved
I have syntactic predicated that I have to convert into the Antlr 4. The grammar is not written my me so I have no idea how to convert them in a meaningful way. These are the main variations of the...
1
Solved
I am trying to port Chris Lambro's ANTLR3 Javascript Grammar to ANTLR4
I am getting the following error,
Rule reference 'LT' is not currently supported in a set
in the following code ~(LT)*
...
2
Solved
In ANTLR 3 you could just do the following:
andExpression
: (andnotExpression -> andnotExpression)
(AND? a=andnotExpression -> ^(AndNode $andExpression $a))*
;
Any idea how to do it i...
1
Solved
Where can I find sql grammars available for v3 of ANTLR?
I have tried http://www.antlr.org/grammar/list, but the link is dead.
Writ asked 22/1, 2013 at 19:15
2
Solved
1 Next >
© 2022 - 2024 — McMap. All rights reserved.