Hi
When using this scanner (I removed actions), ragel seems to loop endless.
%%{
machine configuration_parser;
include scanner_common "scanner.rl";
newline = 'r'? 'n';
comment = '#' any* -- newline;
bulk = ([tvf ] | comment | newline)+;
key = bulk? (alnum ([_.]? alnum)*);
value = bulk? """ any* :>> """;
values = bulk? value (bulk? ',' value)*;
assign = key bulk? '=' values;
main := assign* bulk?;
}%%
But I works like a charm when:
comment = '#' any* -- newline;
become:
comment = '#' any* :>> newline;
_______________________________________________
ragel-users mailing list
[email protected]
http://www.complang.org/mailman/listinfo/ragel-users