Hi Aaron,
Could you send me a copy of your grammar and the test file?
Shaoting
On Sun, Apr 19, 2009 at 5:20 PM, Aaron Leiby wrote:
> I think my first problem was that I was expecting it to compile the grammar
> for me as needed. When it didn't do that, I had ANTLRworks export the .java
> file
I think my first problem was that I was expecting it to compile the grammar
for me as needed. When it didn't do that, I had ANTLRworks export the .java
files for me, and when that didn't work, I had ANTLRworks compile it for me
(via its automatic support when using its Debug... facilities).
Unfort
Hi Vasanthi,
You can try using
SL_COMMENT : "//" (~('\r'|'\n'))*{$channel=HIDDEN;};
instead of skip() the token.
Shaoting
On Thu, Apr 16, 2009 at 10:10 AM, vasanthi a wrote:
> HI ALL
>
> I am facing a problem in SL_Comment..
> My code has //[FEATURE_PDL_START]//
>
> but when it finds //, it ig
Hi Aaron,
Thanks for reporting this.
Is your grammar using any user defined classes? gUnit runtime will
look for all the classes needed to run the grammar. Could you try
just run gUnit without GUI and see if it complains?
$ java org.antlr.gunit.Interp < MyGrammar.gunit
Shaoting
On Sat, Apr 18
Hi,
The problem is, that you use skip() where you should actually use
something like:
: "//" (~('\r'|'\n'))* {$channel=HIDDEN;}
This way the comment will still be acessible in the parser:
http://www.antlr.org/wiki/pages/viewpage.action?pageId=557063
HTH
Tilman Bender
Student des Software En
HI All
I am facing a problem, while I try to instrument a source file which is
having comment.
I am using the below source for checking the grammar.
// Single-line comments
SL_COMMENT
: "//" (~('\r'|'\n'))* {$setType(Token.SKIP);}
;
Once the grammar is checked, it skips this line and the ins
Hot young girl goes topless on her patio after a sexy dance and some
great strip tease action. Check out the boobs on this sexy little
vixen! Dont miss this sexy video!
Token Humor is a video site that updates it content daily with 10
Funny Videos. We try to only pick the best Funny Videos, Sex