jweinst1
4/5/2017 - 7:15 AM

rust-peg grammar with white space example

rust-peg grammar with white space example

pub program -> Vec<String>
  = number+

number -> String
  = _ a:$([0-9]+) _ { String::from(a)}

_ -> Vec<()>
  = [ \n\t\r]*