Bluish CoderProgramming Languages, Martial Arts and Computers. The Weblog of Chris Double.Parsing JavaScript with Factor- June 21, 2008 I've made some more changes to the Parsing Expression Grammar library in Factor. Most of the changes were inspired by things that OMeta can do. The grammar I used for testing is an OMeta-JS grammar for a subset of JavaScript. First the list of changes:Actions in the EBNF syntax receive an AST (Abstract Syntax Tree) on the stack. The action quotation is expected to have stack effect ( ast -- ast ). It modifies the AST and leaves the new version on the stack. This led to code that looks like...http://www.bluishcoder.co.nz/2008/06/parsing-javascript-with-factor.html |