See https://github.com/montagejs/frb/blob/master/lib/parser.js