|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
[Issue 231] New - line numbering issue with jjtree fileshttps://javacc.dev.java.net/issues/show_bug.cgi?id=231
Issue #|231 Summary|line numbering issue with jjtree files Component|javacc Version|4.2 Platform|All OS/Version|All URL| Status|NEW Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P3 Subcomponent|jjtree Assigned to|paulcager Reported by|paulcager ------- Additional comments from paulcager@... Wed Sep 9 19:25:52 +0000 2009 ------- Report from one of our users: There was some discussion about a line numbering issue with jjtree files. I have had that issue forever, currently in version 4.2. I think I can tell you one construct that produces the problem. I have code like: void list_of_ports(NodeState state, int depth ) #ListOfPorts(state.wanted()) : { state = nodeState(state, _LIST_OF_PORTS, depth); } { … } That works fine, but if I change the position of the right parenthesis as follows, it forgets to increment the line count. The line number can still be wrong, but now it is consistently off by the same amount through most of the source file. Much easier to work with. void list_of_ports(NodeState state, int depth) #ListOfPorts(state.wanted()) : { state = nodeState(state, _LIST_OF_PORTS, depth); } { … } -tom --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@... For additional commands, e-mail: issues-help@... |
|
|
[Issue 231] line numbering issue with jjtree fileshttps://javacc.dev.java.net/issues/show_bug.cgi?id=231
User paulcager changed the following: What |Old value |New value ================================================================================ Status|NEW |STARTED -------------------------------------------------------------------------------- ------- Additional comments from paulcager@... Tue Sep 22 15:55:50 +0000 2009 ------- I can't seem to reproduce the problem. I'm using the following snippet as a test case, but JavaCC generates warnings referring to the correct line numbers: 1997 void list_of_ports1(NodeState state, int depth 1998 )#ListOfPorts(state.wanted()) : 1999 {} 2000 { 2001 "AA" | "AA" ("AA")* 2002 } 2003 2004 2005 void list_of_ports2(NodeState state, int depth) 2006 #ListOfPorts(state.wanted()) : 2007 {} 2008 { 2009 "AA" | "AA" ("AA")* 2010 } 2011 2012 void list_of_ports3(NodeState state, int depth 2013 2014 ) 2015 #ListOfPorts(state.wanted()) : 2016 { 2017 int x; 2018 } 2019 { 2020 "AA" | "AA" ("AA")* 2021 } [echo] Warning: Choice conflict involving two expansions at [echo] line 2001, column 3 and line 2001, column 10 respectively. [echo] A common prefix is: "AA" [echo] Consider using a lookahead of 2 for earlier expansion. [echo] Warning: Choice conflict involving two expansions at [echo] line 2009, column 3 and line 2009, column 10 respectively. [echo] A common prefix is: "AA" [echo] Consider using a lookahead of 2 for earlier expansion. [echo] Warning: Choice conflict involving two expansions at [echo] line 2020, column 3 and line 2020, column 10 respectively. [echo] A common prefix is: "AA" [echo] Consider using a lookahead of 2 for earlier expansion. --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@... For additional commands, e-mail: issues-help@... |
| Free embeddable forum powered by Nabble | Forum Help |