Brace yourself
my $car = %models{$wanted};
- Let's look at the code to extract $wanted out of this expression into an AST
ruleHashSubscriptBraces = do between (symbol "{") (char '}') $ option id $ do exp <- ruleExpression; return $ \x -> Syn "{}" [x, exp]
- Three lines is more than it'd take with a regexp...
- but it does a little more.
- We know some of this already