[antlr-interest] Re: native rules?
whaefelinger
ora.et.labora at web.de
Fri Oct 22 06:15:31 PDT 2004
Hmm,
so I'm trying this then:
COMMENT
: "--"
( ~('\n'|'-') | '-' ~('-'|'\n'))( "--" )?
;
And this is my input:
=== test.in =========
----visible00
visible10
--hidden01--visible11
=====================
Compiling with ANTLR 2.7.4 went fine but when running I'm
getting this:
$ java Main < test.in
exception: <stdin>:1:4: expecting one of (''''''''''''\t''
''
''\r'''''
'''''''''''''''''''''''''1''2''3''4''5''6''7''8''9'':'';''<''=''>''?'
'@''A''B''C''D''E''F''G''H''I''J''K''L''M''N''O''P''Q''R''S''T''U''V'
'W''X''Y''Z''[''\'']''^''_''`''a''b''c''d''e''f''g''h''i''j''k''l''m'
'n''o''p''q''r''s''t''u''v''w''x''y''z''{''|''}''~''''''''''''
''''''''''''''''''''''''[..]
Appears not to work this way. Is it working on your box?
Cheers,
Wolfgang.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/antlr-interest/
<*> To unsubscribe from this group, send an email to:
antlr-interest-unsubscribe at yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list