Skip to content
Alexander Bothe edited this page Feb 15, 2015 · 1 revision

Welcome to the FancyPars-lite wiki!

An example looks like this :

ASTNode {
  Sequence {
    Bool[] bools 
  }

  Bool {
    ? "true" : bool isTrue / "false" 
  }
}

This would match the string "false true false true true false"

auto seq = parse(lex("false true false true false"));
writeln(seq.bools) 

would have the output

[Bool(false),Bool(true) ... ]
Clone this wiki locally