repository
stringclasses
156 values
issue title
stringlengths
1
1.01k
labels
stringclasses
8 values
body
stringlengths
1
270k
antlrantlr4
antrl4 source jar do not contain source for runtime
Bug
the source artifact for org antlr antlr4 do not contain source for the contain antr4 runtime dependent on the order of the classpath read maven import this prevent eclipse from show javadoc source for the runtime class please include all source in the source artifact for antlr4
antlrantlr4
miss token when parse
Question
I be currently try to parse preprocessor define in c file with antlr currently I just want to fetch the define name and value if any this be aproximately how my current code look like statement ppdefine linebreak defvalue defvalue definevalue ppdefine preprocess define...
antlrantlr4
implement a visitor
Question
hello currently I m work in a large application with an attribute grammar in antlr4 I have my parser file separate from my lexer file and I want to clean the grammar and pass the logic to a visitor my question be how can I generate the visitor with the combine file I have to clean the attribute of the gramm...
antlrantlr4
fix nameerror in lexeratnsimulator reset
Bug
without this line one get nameerror name lexer be not define when call reset this be the same way init assign self mode
antlrantlr4
antlr doesn t check all alternative
Invalid
first the link minimal grammar minimal program the link grammar be reduce to a minimal working example so it should hopefully be quite understandable it seperate string in string prefix and string content the problem be encounter when an expression contain a variable which be name like a string pre...
antlrantlr4
fetchedeof field hold true even after call on reset in bufferedtokenstream
Duplicate
bufferedtokenstream reset leave boolean field fetchedeof intact make it impossible to reuse the stream object after the first eof be hit
antlrantlr4
antlr4 throw noviablealtexception instead of report miss token
Invalid
example grammar expr parenthesis parenthesis parenthesis parenthesis i d i d a z a z while parse next input x parser throw noviablealtexception if I remove parenthesis parenthesis rule it report miss t...
antlrantlr4
template error attribute parser isn t define
Bug
grammar grammar language lexer member var blah true p t t t a z blah init p eof generate an error below when use javascript target antlr4 dlanguage javascript language g4 warning 22 template error context lexerfile lexer dumpaction rul...
antlrantlr4
xpath java use xpathlexer but it be not in the project
Invalid
I be maintain a fork w o graphic for android and currently I be see that xpath java be require xpathlexer to compile be I miss something I admit I be use a modify pom xml file to compile the runtime jar instead of use bild
antlrantlr4
crash on add an argument to a rule
Bug
on a fairly large grammar combine lexer and parser which work fine I add a parameter to a parser rule term boolean ispre and add an argument to every place that the rule be invoke e g term ispre or term true now run anltr on the grammar cause a crash java lang reflect invocationtargetexc...
antlrantlr4
swift target
Question
I do a quick search and I didn t see anything write about this yet what s the likelihood of a swift target for antlr there be c javascript and python target at the moment what do it take to implement a target give that swift be more java like it seem like it should be possible maybe start with a code...
antlrantlr4
parser not able to load lexer
Invalid
I have to two lexer g4 and parser g4 file error show unable to find or load grammer sqllexer kindly provide solution antlr4
antlrantlr4
miss manifest for out of the box call of bild py
Bug
base on instruction for build antlr from scratch I use the following command in bash mkdir tmp cd tmp git clone cd antlr4 bild py debug mkjar but when it get to make the jar I get build mkjar complete 04 28 15 04 47 03 require bild py 91 bilder py 430 build mkjar c...
antlrantlr4
complex hql order by statement be invalid
Invalid
age from shipment as t where 1 1 and exist select sr i d from shipmentroute sr where sr shipment i d t i d and sr rdc i d t operaterdc i d and sr shiptime be null and sr rdc i d 11111 and sr arrivaltime be null and t busines...
antlrantlr4
classcastexception on split parser lexer grammar
Invalid
I have a relatively simple split parser and lexer grammar which be cause a classcastexception grun someparser layout exception in thread main java lang classcastexception class someparser at java lang class assubclass class java 3404 at org antlr v4 runtime misc testrig process testri...
antlrantlr4
why do the antlr pom have a antlr4 and antlr3 runtime dependency
Invalid
hi I be wonder why the main antlr pom xml as a antlr4 and a antlr3 runtime dependency can the antlr3 dependency be exclude without side effect xml org antlr antlr4 runtime 4 5 org antlr antlr runtime 3 5 2 compile
antlrantlr4
issue with non greedy rule
Invalid
hey I would like to have the follow grammar part of it antlr expression expression and expression expression or expression stringsequence stringsequence stringcharacter fragment stringcharacter stringcharact fragment s...
antlrantlr4
os getlogin be not valid in window
Bug
I use os getenv username in window 7 instead
antlrantlr4
error when use language other than english
Invalid
I be play with the hello g4 from the getting start page here change hello with any arabic word for example crash it it seem that antlr do not support unicode any idea how to overcome this
antlrantlr4
grun hello r gui doesn t show up any dialog box and error
Invalid
I have do git clone and run python script bild all to build the antlr 4 5 complete jar file and follow the below step and example everything work fine but at last step grun hello r gui it doesn t show up dialog and any error after provide the input to it and ctrl d please guide I already waste couple...
antlrantlr4
parse error not throw for invalid input
Invalid
I m not receive a parse error when my input be invalid I can reproduce behavior with modify hello g4 from the book change this r hello i d to this r greeting greeting greeting hello i d I do get an error if the first input line do not start w...
antlrantlr4
unuse import warning in generate listener file
Duplicate
every listener and baselistener java file generate in my project contain the line java import org antlr v4 runtime misc notnull without any reference to notnull appear in the file this generate a ton of warning in eclipse here be an example generate method in one of the baselisten file java ...
antlrantlr4
why do grun xml tokens tokens t xml work for xmllexer g4
Invalid
the grammar file be xml lexer g4 so why would the follow example from the antlr book work grun xml tokens tokens t xml this work as expect grun xmllexer tokens tokens t xml this do not work as expect grun xmllex tokens tokens t xml
antlrantlr4
separate lexer parser grammar file seem to have their token number non synchronize c
Invalid
hi I write the follow small grammar for the matrix in matlab use a separate parser and lexer grammar file antlr parser grammar file matricesparsergrammar g4 grammar matricesparsergrammar option tokenvocab matriceslexergrammar matrixdef matrixdef semicolon matrixdef openbracket matr...
antlrantlr4
use a rule in another one change parse behavior for this rule
Duplicate
hi first thank for your great work on antlr it s a fantastic tool d I get a problem with the version 4 4 I make a rule a which work perfectly I make some test with testrig and the output be fine then I make a rule b which use the rule a this change the behavior of a parsing in a bad way the pars...
antlrantlr4
two window issue
Invalid
I think I find two interesting issue when use antlr 4 5 on window 1 utf 8 support for tree dialog box when I use portuguese keyword with letter like and they aren t show correctly it can be a window cp 1252 encode issue or something else 2 confusion about and window use the for...
antlrantlr4
c target
Invalid
with the low hang fruit like javascript and c target do let s get the really useful one do a c target for antlr4 there s be a few attempt the current one embark on a dead end approach use machine translation of the java source base the target should imo generate a c 14 parser lexer with lambda callba...
antlrantlr4
xpathlexer not regenerate during bild properly
Bug
antlr tool version 4 4 use for code generation do not match the current runtime version 4 5
antlrantlr4
vocabulary java and vocabularyimpl java miss from new build
Invalid
I have download all three complete distribution and run time and all three be miss these two java file prevent I from compile my generate file
antlrantlr4
use of override for base visitor and listener class method cause compiler ide problem
Invalid
the generate basevisitor java and baselistener java include override annotation for all method as there be no superclass implementation of these method the various checker will generate error for every method so mark prevent eclipse from compile the source however the 1 5678 compiler will still com...
antlrantlr4
parameter initialisation
Duplicate
antlr sequence int n local int I 1 le i ne s initialise pas correctement avec 1 il prend toutjour 0 I n int system out println I I I think that all person who read the book antlr4 have see this code I try it but he doesn t initialise the...
antlrantlr4
add way to notify error listener about semantic error with no reasonable location
Invalid
after do visit the parse tree during the semantic phase one might want to perform other error check like emit an error if a particular element be not present in that case there be no reasonable location for the error except perhaps end of file I would like to show a well error message in the error listener ...
antlrantlr4
can not mix leave recursive rule with rule argument
Duplicate
the follow grammar fail to compile with the error below grammar test a b c b ctx a b b x c parserrulecontext context y error 50 2 45 syntax error come as a complete surprise to I while look for rule element org antlr v4 parse grammartreevisitor g ...
antlrantlr4
stackoverflowerror with non left factored term
Invalid
the follow grammar grammar test expression numeric primary numeric numeric comparison numeric between numeric and numeric between numeric number atom numeric ...
antlrantlr4
python 2 target generate buggy grammar parser
Invalid
hello I ve create a rather simple grammar for parse some part of sshd config file and unfortunately I have to use python2 as target language I generate python parser lexer with the follow command java jar antlr 4 4 complete jar dlanguage python2 sshdgrammar g4 and then try to ran it with the cod...
antlrantlr4
include javac or jbc emit visitor with antlr runtime
Invalid
currently the expect consumption model for antlr involve participation from a pre build step such that the grammar be turn into generate code for use on the application this put a stress on antlr user as it require they to have an understanding of a consumption model significantly more complex than any other librar...
antlrantlr4
javadoc issue with jdk1 8 and maven
Duplicate
for reason know only to oracle but most likely they do not think it through the javadoc command in jdk 8 operate as follow xdoclint be on by default which mean it spit out lot of warning and error this option seem to treat warning in the same way as error when the javadoc command see error and wa...
antlrantlr4
grammar doesn t generate local variable declaration
Duplicate
relate stackoverflow question the problem be that parser contain line with public hashmap name with miss new hashmap I spend hour on debug that I hope this isn t feature instead of a bug in that case I apologize for spam
antlrantlr4
xml grammar not work
Invalid
I generate xml parser and lexer from xml grammar file in grammar v4 when I try to parse xml file I always get the follow error line 1 0 no viable alternative at input be this a bug
antlrantlr4
unexpected code generation location behavior
Bug
on window antlr 4 4 might be relate to 638 the follow work as expect grammar exist in the parent directory parser all generate file wind up in the current directory gen cd d d devfile java jsoneditor src net certiv json parser gen java org antlr v4 tool jsonlexer g4 jsonparser g4 ...
antlrantlr4
parsetreevisitor call visit method for child
Duplicate
allow subclass to override visit if they want to be call for each visit to a child
antlrantlr4
wrong javadoc for label alternative
Duplicate
when use label alternative mylangpars mylabelcontext class for each label be create which the javadoc in the generate mylanglistener reference however the link be for mylangpars mylabel instead of mylangpars mylabelcontext which lead to warning when javadoc validation be enable
antlrantlr4
visitchildren visitor be not work
Invalid
I create a grammar that mixed lexer and parser and use a visitor class to visit each node of the parse tree it work very well in my customize visitor class I create separate visiteachnode method to get all the value for each node then I modify the grammar create separate lexer and parser in the lexer ...
antlrantlr4
leave recursive grammar rule cause slow performance in sll mode
Invalid
the grammar and script contain here perform very poorly even in sll mode it seem cause and this be how far I be able to go as some bad interaction between these rule in the grammar anonfunctiondef prefixexp the left recursive operator declare in exp it s not clear to I how anonfunctiondef ...
antlrantlr4
regard antlr 4 4 version on maven central repository
Duplicate
antlr 4 4 have be release for some month but I still can not get it from maven central repository only antlr 4 3 be available xml org antlr4 antlr4 runtime 4 3 another way I find an antlr 4 4 under com tunnelvisionlabs xml com tunnelvisionlabs antlr4 runtime 4 4 do yo...
antlrantlr4
token recognition error at 1
Invalid
lexer java 387 java string msg token recognition error at geterrordisplay text do not return quot token recognition error at lt eof gt quot as plan because it create a java string msg token recognition error at geterrordisplay geterrordisplay 1 ...
antlrantlr4
error when build into eclipse plugin classnotfoundexception org antlr v4 runtime charstream
Duplicate
hello I have successfully create a listener class to parse file use a modified java g4 for java 1 7 grammar all unit test run from within eclipse successfully now I want to incorporate the listener into an eclipse plugin I have a successful plugin to which I be attempt to add the functionality of the ...
antlrantlr4
segfault import antlr4 cygwin
Invalid
I be have difficulty use antlr4 under cygwin be there a workaround for this uname a cygwin nt 6 1 tmc002 1 7 31 0 272 5 3 2014 07 25 11 26 x86 64 cygwin gunzip c antlr4 python2 runtime 4 4 1 tar gz tar xf cd antlr4 python2 runtime 4 4 1 python setup py build python setup py install ...
antlrantlr4
mismatchedtokenexception consider overriding fillinstacktrace to speed thing up
Invalid
we ve notice thousand of call to mismatchedtokenexception constructor during our script compilation please consider suppress stack collection in mismatchedtokenexception class that can be do by override mismatchedtokenexception fillinstacktrace with empty method thank in advance we re use antlr that be part ...
antlrantlr4
can t use quote token in non combine grammar
Invalid
I be write combine grammar and when it become big enought I decide to split it on parser and lexer now I can t build project due to lot of error as for example can not create implicit token for string literal in non combine grammar now I have to rewrite my rule comparisonoperator ...
antlrantlr4
c compiler can t compile generate lexer
Invalid
csc give I follow error without name of the file line and column only project name error 4 an expression be too long or complex to compile I find the reason for this error unfortunately there s not much we can do here without isolate the issue far usually this error result from a dee...
antlrantlr4
antlr 4 do not like grammar file with block comment start with
Duplicate
antlr 4 4 fail to parse antlr grammar file contain 2 successive javadoc style comment for instance the follow grammar fail to parse with error 50 syntax error n comment block2 n come as a complete surprise to I antlr grammar mygrammar comment block 1 comment block2 ...
antlrantlr4
gethashline for c
Invalid
aaaa only support for c please copy paste into c generator
antlrantlr4
tool issue output directory must assume package structure
Duplicate
run the antlr4 tool target language be java as below org antlr v4 tool o antlr generate package antlr generate foo g4 run this result in build error the generate file be place in the default package I can get around this by specify the package structure in my file output argument like this org ant...
antlrantlr4
work on parse tree antlr4 c
Invalid
I have just start work on antlr4 with mathematical equation program that apply some operator on they I create the grammar as follow antlr prog expr expr multexpr op multexpr addsub multexpr powerexpr op powerexpr muldiv fun pow...
antlrantlr4
label for group address only first item
Invalid
I find this question on stackoverflow after investigate the problem I find out that in the follow part of a rule the label content refer only to the first or maybe last non semicolon token instead of the complete group this be why the type of somerulecontext content be commontoken ...
antlrantlr4
transmit token on different channel in python lexer
Duplicate
when generate a java lexer for c g4 as with antlr4 c g4 transmit token on a different channel can be accomplish with e g lexer member public static final int whitespace 1 public static final int comment 2 however when generate a python2 lexer as with antlr4 dlanguage p...
antlrantlr4
grammar not allow in superclass fully qualified class name in antlr 4 3
Invalid
the following be illegal but probably shouldn t be option superclass batfish grammar batfishlexer since I didn t want to rename my grammar package I resort to option superclass batfish util dummylexer where dummylexer trivially extend batfish grammar bat...
antlrantlr4
check the existance of the token when use tokenvokab option
Invalid
if I use undeclared token in the grammar antlr doesn t show any error I think it be well to show an error or warning
antlrantlr4
predicate in the parser without obvious reason
Invalid
predicate in the rule namewithdatabase the only way to get rid of the predicate be to remove the left recursion in the rule expression somehow it lead to the predicate my combined grammar parser rule binaryoperator ...
antlrantlr4
parser rule no long accessible
Invalid
change from antlr 4 2 2 complete jar to antlr 4 3 complete jar and 4 4 break access to parser rule dot start parser value init logger enter classname value value start somerule error 65 sqlpars g4 164 49 unknown attribute start for rule value in value start 1 error s ...
antlrantlr4
nullpointerexception in org antlr v4 runtime parser notifyerrorlistener offendingtoken be null
Invalid
I don t really understand what the actual cause of this problem be but I attach a project which illustrate the issue
antlrantlr4
antlr4 go lang target
Invalid
be there any plan or ongoing effort for a go lang target
antlrantlr4
c not properly document
Invalid
I consider it a bug when at the top of the antlr4 4 3 june 18 2014 download page it say that c be a support target but below in the c target section you click on antlr 4 c target late release and it bring you to a page who s late article be v4 2 2 alpha001 date april 8th similarl...
antlrantlr4
compile seperate lexer and parser in subdirectory fail
Bug
if one define a seperate parser and lexer as such lexer g4 lexer grammar lexer token indent dedent int 0 9 parser g4 parser grammar parser option tokenvocab lexer main int eof with the follow directory layout project ...
antlrantlr4
no viable alternative at input
Duplicate
the follow grammar grammar expr expr expr expr int int 0 9 with the input 42 it throw line 1 1 no viable alternative at input eof only add a rule as expr it start to work fine
antlrantlr4
whitespace skip accept 3 3 as expr 3
Duplicate
a very simple grammar to understand grammar expr expr int int 0 9 ws t r n skip accept 3 3 and it parse the string as expr 3 fortunately if one try with one as the example in the home page grammar expr expr expr expr expr ex...
antlrantlr4
reportattemptingfullcontext didn t get conflict alt unless decision
Duplicate
have predicate
antlrantlr4
crash during normal use of antlrv4 2 2
Duplicate
just compile a grammar give this though at least the generate file be produce line 7 be just the grammar declaration element option and right do not appear in the file antlr tool v4 2 2 c user dcok appdata local temp antlr 4 2 2 complete jar acsl g4 o c cygwin home sb bj trunk nasa speedy annota...
antlrantlr4
how to get a phrase in a sentence
Invalid
for example if a b then 1 else 2 I have define if then and else as keyword in grammar be there any way to define the grammar so that I can get a b thank
antlrantlr4
error when generate parser from grammar
Duplicate
when attempt to generate a parser for a grammar I m write I m leave with a number of exception and be have trouble figure out what the problem be can t find rule grammarspec or tree structure error combine grammar java lang reflect invocationtargetexception at sun reflect nativemethodaccessorimpl...
antlrantlr4
antlr4 lexer parser
Invalid
I have be have problem with this for a while now and can t seem to solve so it would be great if some of you could help basically I be use the late antlr 4 2 2 and keep get this problem can t load as lexer or parser everytime I try to run the test rig on my grammar to show I the tree I have be able to compi...
antlrantlr4
tokenstreamrewriter doesn t preserve override order
Bug
output order differ when many override be insert with the same index I use tokenstreamrewriter in listener when a placeholder rule be enter I put tag into rewriter with insertbefore when the placeholder be exit I put tag into rewriter with insertafter everything be fine with call sequ...
antlrantlr4
error range
Duplicate
hello I ve a problem I think form deep of library grammar grammar regular start regex regex a z and I can not compile it error log I m use antlr 4 2 2 complete jar
antlrantlr4
x x x y sometimes cause no viable alternative
Duplicate
feed the follow grammar antlr grammar demo x x x y with the input yy like this bash echo n yy java cp antlr jar org antlr v4 runtime misc testrig demo x gui produce the correct tree but with the follow message line 1 2 no viable alternative at input ...
antlrantlr4
part of the input ignore in create parse tree in intellij plugin
Invalid
here be a grammar where I accidentally misdefine variable name rule nimi so that it doesn t allow single character name to my surprise when I test rule avaldis in antrl4 intellij plugin plugin version 1 0 2 intellij version 13 1 1 with input 1 a 2 2 it give I nice and wrong parse tree which be si...
antlrantlr4
lexer rule information require
Invalid
I have the follow lexer rule asc a s c a s c e n d I n g a s a s etc be like fragment s s s I be use this rule in a parser rule sortspecification sortkey sortorder nullorder sortorder asc desc in my java visitor then I have a code...
antlrantlr4
why target language when we can have target format
Invalid
yo I be wonder why not support ast generation in a common format like xml json I think it would be quite helpful for all those who wanna write their dsls implementation cheer
antlrantlr4
pick up java installation via environment variable
Invalid
I create a c project that use antlr4 use the antlr4 c vs extension in vs20120 everything build fine on the local machine now I be try to hook up the solution to my company s automate build system when the build run I get the follow error package antlr4 4 1 0 alpha003 build antlr4 target 132 5 er...
antlrantlr4
antlr v4 2 give warning when static int use as channel
Duplicate
I have this lexer member lexer member public static final int whitespace 1 public static final int linebreak 2 public static final int comment 3 public static final int ppdir 4 and some rule that use the static constant as channel number e g ml comment ...
antlrantlr4
need action when match a fragment lexer rule
Duplicate
I need to translate a token that be a fragment token before send it to the parser I begin a v4 2 antlr grammar because it do support lexer mode I don t know if I should come back to the v3 antlr grammar from which I do have the documentation translate the final token would mean 2nd level parsing of a long strin...
antlrantlr4
allow super class with generic in superclass option
Invalid
superclass option parse rule do not support and symbol so one can not specify a super class with generic option superclass mysuperclass syntax error mismatch input expect semi
antlrantlr4
compile the grammar with antlr 4 2 cause a lexer error
Invalid
I have upgrade to java 8 and antlr 4 2 snapshot now when I generate my grammar the lexer parser listener visitor and token file be create but there be a suppresswarning all warning unchecked unused cast on the lexer class xqtlexer in my case which netbean 7 3 on java 8 do n...
antlrantlr4
download link return 404 error
Invalid
bring up a github 404
antlrantlr4
nullpointerexception use jre8
Duplicate
run java org antlr v4 tool tour expr g4 throw this exception in thread main java lang indexoutofboundsexception index 0 size 0 at java util arraylist rangecheck unknown source at java util arraylist get unknown source at org antlr v4 misc orderedhashmap getelement ordered...
antlrantlr4
parse a gzipped text file
Invalid
hi everyone I m try to implement a program that read from a gzipped text file and pass the content of the file to an antlrinputstream object this be an example of what I m try to do fileinputstream fis new fileinputstream new file a file gz gzipinputstream gis new gzipinputstream fis inpu...
antlrantlr4
antlr v4 1 for c sorely need
Invalid
I be wonder why there be no progress on the c version of antlr for about four month now it appear that the c version doesn t implement v4 1 yet either that or there be a bug on the download page on the antlr website do you need help with the c version
antlrantlr4
single charater problem
Invalid
I think this be a problem with antlr4 although it might very well be a problem with my grammar concern the parsing of single character I think antlr4 have an issue parse single character as I get the follow error line 1 12 extraneous input expect eof binary selector identifi separator c...
antlrantlr4
I want to parse comment in struct and ignore all other position but fail
Invalid
antlr 4 grammar file usercstructtype g4 antlr grammar usercstructtype userstructtypedef userstructtypedef userstructtypedef typedef struct structfielddecl name structfielddecl primitivetype name fieldcomment primitivefielddecl a...
antlrantlr4
unrecognized derivation
Invalid
this simple antlr v4 0 grammar accept the word aabyx but if you decomment the last alternative on the t rule then this word be no more accepted this seem a bug to I in particular extend the language recognize by t should not restrict the language recognize by s ...
antlrantlr4
bailerrorstrategy bail out on proper input
Invalid
hi I believe this be a bug with the follow grammar antlr4 grammar ara file item semicolon item semicolon eof item a b semicolon a a a b b b ws r t n skip and follow test case java7 test public void aral...
antlrantlr4
type initializer exception when create lexer
Invalid
hi I be use antlr4 0 with c target for a simple calculator grammar everything be ok for generate the c code e g lexer parser listener vistor but when start pare in the follow code I get exception when create the calculatorlexer string s a 3 2 antlrinputstream i...
antlrantlr4
download do not contain an antlrinputstream that implement charstream
Bug
hey I have download late version of antlr 4 and I be able to complete the simple example a first example the generate class hellolexer java seem to expect some class implement a charstream as input import org antlr v4 runtime charstream public hellolexer charstream input super input ...
antlrantlr4
uncaught exception in listener silently ignore modify parse
Bug
encounter this when work with the xml grammer and use a listener to process the input uncaught exception which be generate within the body of the listener method appear to be catch somewhere in the antlr internal and be not display to the user but do appear to change the internal parse structure the error messa...
antlrantlr4
use sll with testrig give syntax error but it shiws ok on gui
Invalid
use sll with testrig give syntax error but it show ok on gui I be have a long time to run the parser with ll and I try this sll with ll I have no error with sll it show syntax error however seem to recover if it show syntax error how do I know if they be recover error or true syntax error wihtout run full ...
antlrantlr4
inconsistent lexer error msg for action
Invalid
if I change the rule characterliteral in antlr grammar v4 java g4 l895 thus characterliteral singlecharacter r n notifyerrorlistener unclosed character literal I get the antlr error message error 132 c java g4 897 21 action in lexer...
antlrantlr4
labelling alternative token do not work with assoc right option
Invalid
use antlr 4 1 osx 10 6 8 netbean 7 2 antlr maven plugin when I try to assign a label to alternative which have the assoc option like this assignment i d op assign timeseq diveq modeq pluseq minuseq ...
antlrantlr4
warn 125 implicit definition of token in parser be display where not appropriate
Bug
I have a separate lexer and parser grammar derive from the sample modetagslexer modetagsparser and get a warning in antlrwork 2 that I don t understand warn 125 implicit definition of token open in parser if I replace the open rule with the warning go away I wonder what the difference between open and...
antlrantlr4
encounter problem when modify tree in visit model
Bug
dear all I use visit model to modify the parse tree and encounter a problem when I replace some child node while visit the parent node I think the problem be due to the loop style in visitchildren method as follow java public t visitchildren notnull rulenode node t result default...
antlrantlr4
precedence break if one alternative contain rule only
Bug
when parse the follow statement with the rule expression see below the precedence of a multiplicative expression over an equality expression break while n I 0 factor add I n I expression primary primary...