luikore
luikore
See also better errors
``` require 'strscan' ss = StringScanner.new "\n" /./ =~ "\n" #=> 0 # but strscan's behavior is strange: ss.scan /./ #=> nil ss = StringScanner.new "a\n" ss.scan /[.\n]/ #=> nil...
For uniform optimization (tree transformation) and compiler crafting. For example, this rule (API is still under considering) will reduce a nested parser to an optimized one: ``` tree [Until, [Pattern]]...
Add a method to_graph, which outputs a dot file which can be read by graphviz. Rule names will be a bit strange. Maybe can use parser.name = 'some rule name'...
- [x] resume parsing on syntax error - [x] line number on syntax error - [x] remove redundant ``s - [x] tweak generated tags and add `` - [x] macro...
Can I do this? Like in https://github.com/qiuzi/dns2socks/blob/master/DNS2SOCKS.c