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: [EMAIL PROTECTED] > > > > > List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest > Unsubscribe: > http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en -~----------~----~----~----~------~----~------~--~---
List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address
