[il-antlr-interest: 23318] SEXY HOT INDIAN ACTRESS IMAGES AND VIDEOS

2009-04-21 Thread rosean...@gmail.com
SEXY HOT INDIAN ACTRESS IMAGES AND VIDEOS LOCAL SEXY GIRLS HOT VIDEOS * http://udayafca.webs.com http://udayafca.webs.com * --~--~-~--~~~---~--~~ You received this message beca

[il-antlr-interest: 23317] Re: [antlr-interest] Lexing 7-bit ASCII stream

2009-04-21 Thread Indhu Bharathi
Order doesn't matter. ANTLR will match the longest possible token. One case when order matters is when the rule below cannot match any token inspite of the 'lengthiest token matching' mechanism. Example: ID   :   'a'..''z'+ ; SOME_KEYWORD   :   'key' ; In this case ANTLR will report an err

[il-antlr-interest: 23316] Re: [antlr-interest] recursive rule invocations

2009-04-21 Thread Aaron Leiby
I did not have much luck with this btw (the suggested solution exhibited the same problem). I went back and structured my grammar closer to the C example grammar provided with ANTLR (as far as assignment expressions go). However, that example unfortunately uses global backtracking. I was able to

[il-antlr-interest: 23315] Re: [antlr-interest] Lexing 7-bit ASCII stream

2009-04-21 Thread Avid Trober
thanks. org.antlr.Tool is happy with these two, regardless of which one is above/below the other. But, won't the DFA's care about the order??? DQUOTE : '"' ; DQUOTE_STRING : DQUOTE ( ~('"') )* DQUOTE - Original Message - From: "Gavin Lambert" To: "Avid Trober" ; Sent: Tuesday, Apr

[il-antlr-interest: 23314] Re: [antlr-interest] Debug port problem in Visual Studio test project

2009-04-21 Thread Dennis Brothers
I pretty much gave up looking for a solution. I still have the standalone test harness, and I comment out the system dependencies if I need to see the parse tree or AST (increasingly rarely, as the project matures). - Dennis Brothers On Apr 21, 2009, at 12:07 PM, Jacob Buys wrote: >

[il-antlr-interest: 23312] Re: [antlr-interest] ANTLR running out of memory while parsing huge files

2009-04-21 Thread Nick Vlassopoulos
Andreas, Jim, Yes, this seems the right way to do it, since the actual "body data" are pretty trivial! I'll try working this the way you suggested! Again, thanks for your replies! Nikos On Tue, Apr 21, 2009 at 4:11 PM, Jim Idle wrote: > Nick Vlassopoulos wrote: > > Hi Jim! > > > > Thanks for

[il-antlr-interest: 23311] Re: [antlr-interest] ANTLR running out of memory while parsing huge files

2009-04-21 Thread Jim Idle
Nick Vlassopoulos wrote: > Hi Jim! > > Thanks for your replies!! > > The input lines are of the form > "var = data" > so they are pretty simple! > If I got this right, you suggest using something like a > body_set : >body_start (probably a "greedy" option here?) body_end > rule and then just a

[il-antlr-interest: 23310] Re: [antlr-interest] ANTLR running out of memory while parsing huge files

2009-04-21 Thread Andreas Meyer
No, in any case, you should avoid parsing the whole file! That would basically mean loading the whole file into main memory. Either use a lexer, a custom tokenizer or whatever for seperating your entries in the body section. Then, for each line, you invoke the parser, possibly by reusing the e

[il-antlr-interest: 23309] Re: [antlr-interest] ANTLR running out of memory while parsing huge files

2009-04-21 Thread Nick Vlassopoulos
Hi Jim! Thanks for your replies!! The input lines are of the form "var = data" so they are pretty simple! If I got this right, you suggest using something like a body_set : body_start (probably a "greedy" option here?) body_end rule and then just add code to parse the intermediate lines (which

[il-antlr-interest: 23308] Re: [antlr-interest] Confused by warnings

2009-04-21 Thread Jim Idle
Sam Barnett-Cormack wrote: > So, I have this rule: > > setting >: (LCURL)=>settingLCURL >| (LCID|externalValueReference)=>referencedValue >| typeornull >| value >| object >; > > And I'm getting warnings that multiple choices can match input such as > LCID or LCURL. It's tr

[il-antlr-interest: 23307] Re: [antlr-interest] Resetting an AST tree walker

2009-04-21 Thread Steve Souza
This question in the antlr archives is the same one I have: "Is this now the correct practice where a tree walker is to be invoked repeatedly ?" http://www.antlr.org/pipermail/antlr-interest/2009-March/033823.html The poster says that using BufferedTreeNodeStream instead of CommonTreeNodeStream

[il-antlr-interest: 23306] [antlr-interest] Confused by warnings

2009-04-21 Thread Sam Barnett-Cormack
So, I have this rule: setting : (LCURL)=>settingLCURL | (LCID|externalValueReference)=>referencedValue | typeornull | value | object ; And I'm getting warnings that multiple choices can match input such as LCID or LCURL. It's true that a lot of the options can match either, bu

[il-antlr-interest: 23305] Re: [antlr-interest] ANTLR running out of memory while parsing huge files

2009-04-21 Thread Jim Idle
Nick Vlassopoulos wrote: > Hi Andreas, > > Thanks for your fast reply! > So it should be something like a "line parser" that's instatiated for > each line of the BODY section! > No - you don't want to do this really, you will create millions of malloc/free calls - go with the custom input stream

[il-antlr-interest: 23304] Re: [antlr-interest] ANTLR running out of memory while parsing huge files

2009-04-21 Thread Jim Idle
Nick Vlassopoulos wrote: > Hi, > > I am fairly new to ANTLR and I have come accross a problem. > I have written a simple grammar to parse huge data files (several > gigabytes each) > and antlr seems to crash by running out of memory (I am using "C" as > the target language). > > The data files h

[il-antlr-interest: 23303] Re: [antlr-interest] Declaring exceptions in rules

2009-04-21 Thread Jim Idle
Gavin Lambert wrote: > At 17:08 21/04/2009, Christof Lutteroth wrote: > >I am trying to get ANTRL 3.1.3 to generate a method that > declares > >an exception. > >For example, I want rule compilationUnit (from the Java grammar > in > >the grammars section of the ANTLR website) to throw an > E

[il-antlr-interest: 23302] Re: [antlr-interest] ANTLR running out of memory while parsing huge files

2009-04-21 Thread Nick Vlassopoulos
Hi Andreas, Thanks for your fast reply! So it should be something like a "line parser" that's instatiated for each line of the BODY section! Thanks again! Nikos On Tue, Apr 21, 2009 at 2:22 PM, Andreas Meyer wrote: > I do not remember something built-in, so I guess the easiest solution > would

[il-antlr-interest: 23301] Re: [antlr-interest] ANTLR running out of memory while parsing huge files

2009-04-21 Thread Andreas Meyer
I do not remember something built-in, so I guess the easiest solution would be to create a lexer for the HEADER/DECL/BODY/line/END tokens, and from within the lexer, instantiate/call a new lexer/parser. Best, Andreas Meyer smartShift smart e*lliance GmbH Willy-Brandt Platz 6 68161 Mannheim Ger

[il-antlr-interest: 23300] [antlr-interest] ANTLR running out of memory while parsing huge files

2009-04-21 Thread Nick Vlassopoulos
Hi, I am fairly new to ANTLR and I have come accross a problem. I have written a simple grammar to parse huge data files (several gigabytes each) and antlr seems to crash by running out of memory (I am using "C" as the target language). The data files have the general format: HEADER DECL BODY

[il-antlr-interest: 23299] Re: [antlr-interest] Declaring exceptions in rules

2009-04-21 Thread Gavin Lambert
At 17:08 21/04/2009, Christof Lutteroth wrote: >I am trying to get ANTRL 3.1.3 to generate a method that declares >an exception. >For example, I want rule compilationUnit (from the Java grammar in >the grammars section of the ANTLR website) to throw an Exception: > >compilationUnit throw

[il-antlr-interest: 23298] Re: [antlr-interest] Lexing 7-bit ASCII stream

2009-04-21 Thread Gavin Lambert
At 21:59 21/04/2009, Avid Trober wrote: >I'm parsing a 7-bit ASCII stream ... 2 questions > >Question 1: can't I just fall-thru wrt to lexer rules, where >lexer rules are specific-to-general, and avoid indeterminisms at >run-time? [...] >... // (AND IF NOTHING ABOVE MATCHES, AT LEAST WE'RE MATCH

[il-antlr-interest: 23297] [antlr-interest] Help needed in fixing the grammar issue

2009-04-21 Thread vasanthi a
Hi All I have the below lines of code in my source, but while I try instrument the source, it throws error 1:debug_error((char *)("ConnectIntPstn : NewAccessModem failure: "), 1, (long)(modem_status), (long)(0)); It gives error [ unexpected token: , ] 2: if __ctype_b))[(int) ((TRECK_BYTE

[il-antlr-interest: 23296] [antlr-interest] Lexing 7-bit ASCII stream

2009-04-21 Thread Avid Trober
I'm parsing a 7-bit ASCII stream ... 2 questions Question 1: can't I just fall-thru wrt to lexer rules, where lexer rules are specific-to-general, and avoid indeterminisms at run-time? For example: NULL: '\u' ; SOH: '\u0001' ; ... // (EACH CONTROL CHARCTER HAS ITS OWN LEXER RUL

[il-antlr-interest: 23295] Re: [antlr-interest] Retaining Comments after parsing the file

2009-04-21 Thread Paul Bouché (NSN)
Another alternative you could do is not use source code instrumentation, but bytecode instrumentation ;-) To do that look at the ASM toolkit. Andreas Meyer schrieb: > It seems you are using ANTLR2. There, hidden tokens were handled > differently from ANTLR3 (see http://www.antlr2.org/doc/stream

[il-antlr-interest: 23294] [antlr-interest] Second Call for Papers: 2nd International Conference on Software Language Engineering

2009-04-21 Thread Serebrenik, A.
__ Call for Papers - SLE 2009 2nd International Conference on Software Language Engineering http://planet-sl.org/sle2009 Denver, Colorado, October 5-6, 2009