[antlr-interest] gUnit test cases and Windows paths
David Peckham
dave.peckham at me.com
Sat Jan 17 17:01:43 PST 2009
Hi Leon,
First, thank you for gUnit!
My gUnit test cases fail when they contain Windows paths. UNIX paths
work fine. These test cases work in ANTLRWorks. See my sample grammar
and test cases below.
Dave
--------------- grammar -----------------
grammar sample;
statement
: dbCommand NEWLINE
;
dbCommand
: CMD_OUTPUT { $CMD_OUTPUT.pos == 0 }? ~NEWLINE+
;
CMD_OUTPUT
: ( '.output' | '.outpu' | '.outp' | '.out' | '.ou' | '.o' )
;
NEWLINE
: '\r'? '\n'
;
--------------- test cases -----------------
dbCommand:
".output C:\TEMP\test.csv" OK
<<.output C:\TEMP\test.csv>> OK
More information about the antlr-interest
mailing list