|
|
Re: Terminal does not match a lowercase string [message #1764626 is a reply to message #1764526] |
Wed, 31 May 2017 22:24 |
|
Christian Dietrich wrote on Tue, 30 May 2017 17:29Sure that is the only terminal rule or keyword you have?
This are all terminal rules I have:
AMOUNT:
INT (',' INT)?;
Vornamen:
NAME (('-'|'+') NAME)*;
Nachname:
NAME ((('-'|'+') NAME) | (E NAME))*;
CityName:
(NAME '.')? NAME (('-'|'+') NAME)* ('/' NAME '.'?)?;
ACCOUNT:
NAME (('-'|'_'|"."|"+") NAME)*
;
SITE:
NAME ('.' NAME)+
;
EMAIL:
ACCOUNT '@' SITE
;
terminal E:
'e'
;
terminal PLZ:
(('A'..'Z')+ "-")? '0'..'9' '0'..'9' '0'..'9' '0'..'9' ('0'..'9')?;
enum Anrede:
du | sie ;
Sex:
"Mann" | "Frau"| "Ehe"| "Familie" | "D&H";
terminal ADEL:
('a'..'z' | 'ß'..'ö' | 'ø'..'ý' | 'ÿ')+;
terminal NAME:
('a'..'z' | 'A'..'Z' | 'À'..'Ö' | 'Ø'..'Ý' | 'ß'..'ö' | 'ø'..'ý' | 'ÿ')+;
terminal NUMMERN:
'S'('1'..'9')('0'..'9')* '_' ('1'..'9')('0'..'9')*;
Can you see somthing that is wrong ?
|
|
|
|
Re: Terminal does not match a lowercase string [message #1764732 is a reply to message #1764631] |
Thu, 01 June 2017 18:32 |
|
Thank you very much. I solved my issue by restructuring my terminal rules.
ACCOUNT:
LOWERNAME (('-'|'_'|"."|"+") LOWERNAME)*
;
SITE:
LOWERNAME ('.' LOWERNAME)+
;
[...]
terminal LOWERNAME:
('a'..'z' | 'ß'..'ö' | 'ø'..'ý' | 'ÿ')+;
terminal NAME:
(LOWERNAME | 'A'..'Z' | 'À'..'Ö' | 'Ø'..'Ý' )+;
|
|
|
Powered by
FUDForum. Page generated in 0.03806 seconds