[il-antlr-interest: 25489] Re: [antlr-interest] misunderstanding channel HIDDEN

2009-08-27 Thread Ian Eyberg
} fis.close(); } catch(Exception e) { e.printStackTrace(); } it'd be wise to go ahead and include the other common encodings in this but this got me going to do what I wanted.. thanks again, Ian On 09:07 Thu 27 Aug , Gavin Lambert wrote: > At 06:13 27/08/2009, Ian Eyberg wrote:

[il-antlr-interest: 25457] [antlr-interest] misunderstanding channel HIDDEN

2009-08-26 Thread Ian Eyberg
Hi, I think I'm misunderstanding the usage of $channel = HIDDEN or skip(). I have text that looks like: 'b...@l^@a...@h^@' (most of the time the text is simply 'blah') and then it should come out like this: 'blah' my relevant rules are: startrule : BLAH; BLAH: 'blah'; UCODE

[il-antlr-interest: 24126] Re: [antlr-interest] videos from the workshop

2009-06-08 Thread Ian Eyberg
Awesome! Thanks a lot for publishing those videos! -ian On 13:39 Mon 08 Jun , Terence Parr wrote: > Hi, these are the videos taken during the lectures. The only problem > is they don't seem to work on my office Mac though they worked on my > home Mac. Hmm...i installed the WMV stuff for

[il-antlr-interest: 23995] Re: [antlr-interest] ocaml target?

2009-06-03 Thread Ian Eyberg
, J. Stephen Riley Silber wrote: > Oh, Ian, you have to be careful with posts like that.  Terence is very sneaky > like that.  :-) > > --- On Tue, 6/2/09, Terence Parr wrote: > > From: Terence Parr > Subject: Re: [antlr-interest] ocaml target? > To: "Ian Eyber

[il-antlr-interest: 23975] [antlr-interest] ocaml target?

2009-06-02 Thread Ian Eyberg
hi, anyone know of anyone working on an ocaml target? -ian List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address --~--~-~--~~~---~--~~ You received this message because yo

[il-antlr-interest: 23528] Re: [antlr-interest] ??

2009-05-05 Thread ian eyberg
: '\u65279'{ skip(); }; On Tue, May 05, 2009 at 10:11:01AM -0700, Jim Idle wrote: > ian eyberg wrote: > > Hi, > > > > someone has sent me a file to parse and there are all sorts of > > '' characters in them in arbritrary spots -- looking it up >

[il-antlr-interest: 23524] [antlr-interest] ??

2009-05-05 Thread ian eyberg
piece of software on a OSX box maybe if I detect a bom in one of my documents I can convert the entire file to the appropriate encoding first?? thanks, -- ian eyberg List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/o

[il-antlr-interest: 23170] Re: [antlr-interest] multi-line chat messages

2009-04-15 Thread ian eyberg
nd, > you could try looking for a token at the beginning. For example: > ">>" As long as the token is something that isn't _allowed_ in user > input, you'll be fine. > > --- > Hank Schultz > Cedrus Corporat

[il-antlr-interest: 23164] [antlr-interest] multi-line chat messages

2009-04-14 Thread ian eyberg
pe of characters.. the best thing I can think of is to see if my next token would be a username or one of my other tokens that would come at the start of a newline I've attached my test rig and simple grammar Much appreciation in advance, --

[il-antlr-interest: 22421] Re: [antlr-interest] yaska: antlr autotest

2009-03-12 Thread ian eyberg
On Thu, Mar 12, 2009 at 08:46:53AM -0700, Jim Idle wrote: > Out of interest, was there something that gUnit does not do for you that > meant you wrote this? It might be useful feedback. Actually I have yet to get into gUnit, although it is definitely on my list. The problem is that I had built

[il-antlr-interest: 22417] [antlr-interest] yaska: antlr autotest

2009-03-12 Thread ian eyberg
Hi, After writing my grammars according to unit tests that I had previously written I realized I should have corrected the warnings I was generating as they came. (warnings are really errors). Anyways, I can't stand graphical IDEs and my work environment mainly consists of screen+vim. So, I

[il-antlr-interest: 21575] [antlr-interest] chat message parser rule?

2009-01-26 Thread ian eyberg
Oh awesome antlr apostles: I've been stuggling with a parser rule and am hoping you might be able to help me. I'm have a bit of data I'm trying to parse that looks something like this: username: the rain in spain stays Running this through antlrworks I am hitting my 'chatrule' every

[il-antlr-interest: 21261] Re: [antlr-int erest] '–versus '-'

2009-01-13 Thread ian eyberg
> hi everyone, > > just ran across a problem which I hope > someone knows the answer to. > > I thought I was trying to parse out a '-' > but on closer examination I need to parse > out a '–'. > > looking that up one is called a en dash and the latter > is an em dash. > > I tried to throw it i

[il-antlr-interest: 21260] [antlr-interest ] '–' versus '-'

2009-01-13 Thread ian eyberg
hi everyone, just ran across a problem which I hope someone knows the answer to. I thought I was trying to parse out a '-' but on closer examination I need to parse out a '–'. looking that up one is called a en dash and the latter is an em dash. I tried to throw it into a lexer and a parser r

[il-antlr-interest: 21222] Re: [antlr-interest] antlr-snapshot down?

2009-01-09 Thread ian eyberg
on this note, I've been looking up random error messages off the mailing list today and have noticed the grand majority of indexed links lead to 404s; yes I know I can go look at cached lists elsewhere but when you have the top spot on google and such it kind of sucks that most of them are goin

[il-antlr-interest: 21213] Re: [antlr-interest] mismatched character

2009-01-08 Thread ian eyberg
>Hi list, > I have a problem with a very simple >grammar. Whenever I try to uncomment the >lexer rule, ANTE, to this grammar it spits out a > >line 1:18 mismatched character 's' expecting 'n' > > >test file: >*** TURN *** [Ad As 6d] [Ts] > >the grammar: > > >grammar Blah; >options {language=Java;

[il-antlr-interest: 21212] [antlr-interest] mismatched character

2009-01-08 Thread ian eyberg
Hi list, I have a problem with a very simple grammar. Whenever I try to uncomment the lexer rule, ANTE, to this grammar it spits out a line 1:18 mismatched character 's' expecting 'n' test file: *** TURN *** [Ad As 6d] [Ts] the grammar: grammar Blah; options {language=Java;} line : cacti

[il-antlr-interest: 20683] [antlr-interest] returning antlr w/c

2008-11-26 Thread ian eyberg
Hi, I'm using antlr 3.1.1 and evaluating it against boost::spirit and I'm having a pretty hard time coming up with even simple examples that work. I have a grammar like so: grammar Blah options{ language = C; } r returns [char *s] :w1=ID ' ' w2=ID{ $s = "blah"; }; ID: 'a'..'z