[antlr-interest] In bad need of expert help
Jim Idle
jimi at temporal-wave.com
Thu Sep 11 07:57:19 PDT 2008
On Thu, 2008-09-11 at 15:02 +0200, Mikael Petterson wrote:
> Hi,
Mikael,
I don't think that this is the tool for doing that, even though you
could use a filtering lexer to do it. It would be trivial to write a
small Java program to do it, if there is no operating system toolset,
but you can also just use:
cat outputfile | grep -v "Error:"
Or use awk or sed and so on. Is there some reason that you thought you
would need a parser to do this?
JIm
>
> My input lines to antlr to handle are:
>
> "Jalopy Source Code Formatter 1.9_126\r\n" +
> "Site License Owner: Ericsson AB, Kista, Sweden\r\n"+
> "Copyright (c) 2003-2008 TRIEMAX Software Ltd. All rights reserved.\r
> \n" +
> "[INFO] Detecting code convention format\r\n" +
> "[INFO] Jalopy code convention detected\r\n" +
> "[INFO] Activate profile \"wong\"\r\n" +
> "[INFO] Importing settings into active profile \"wong\"\r\n"+
> "[INFO] Imported 732 keys into active profile \"wong\"\r\n" +
> "[INFO] M:\\eraonel_testa\\mbv_admin\\testarea\\productsample\\com\
> \sample\\product\\ProductC.java:0:0:File clean, skipped\r\n"+
>
> "[INFO] 0 files formatted in 0.656 sec\r\n"+
> "command exited with value 0\r\n"+
> "cleartool: Error: By default, won't create version with data
> identical to predecessor.\r\n"+
> "cleartool: Error: Unable to check in \"M:\\eraonel_testa\\mbv_admin\
> \testarea\\productsample\\com\\sample\\product\\ProductC.java\".\r\n"
>
> If I remove the part that is not interpreted:
>
> "cleartool: Error: By default, won't create version with data
> identical to predecessor.\r\n"+
> "cleartool: Error: Unable to check in \"M:\\eraonel_testa\\mbv_admin\
> \testarea\\productsample\\com\\sample\\product\\ProductC.java\".\r\n"
>
>
> My test will run ok.
>
> I will attach my *.g file.
>
> I appreciate all help that I can get.
>
> cheers,
>
> //mike <<CleartoolOutput.g>>
>
>
> Mikael Petterson
> Software Designer
>
>
> Ericsson AB, Stockholm, Sweden
> Visiting address: Isafjordsgatan 15, Kista
> Phone: +46 70 2673044
> E-mail: mikael.petterson at ericsson.com
>
>
>
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080911/99a75170/attachment.html
More information about the antlr-interest
mailing list