I'd like to write a parser for some legacy data set definition files.
Here is a contrived example what the definitions look like:
// A sample data type definition
Type foo.bar.Strange name with 1000 weird chars: $\\d[]
{
required searchable String Simple
maybe is this what you want?
in : cname*;
cname : '@' CHAR* ':' NL param*;
param : (CHAR|':')+ NL+;
CHAR: ~(NewLineChars|'@'|':')+ ;
NL : NewLineChars+;
fragment NewLineChars
: '\n'
| '\r'
;
Nukiti
Hello,
new to ANTLR I wondered if it is possible