Slide 43
Slide 43 text
݁Ռ:
naiveRoute = .match("R", .choice([
.match("foo", .capture(int)),
.match("bar", .capture(double)),
.match("baz", .capture(string)),
.match("foo", .match("bar", .term(fooBar)))
]))
optimizedRoute = .match("R", .choice([
.match("bar", .capture(double)),
.match("baz", .capture(string)),
.match("foo", .choice([
.capture(int),
.match("bar", .term(fooBar))
]))
]))