[Factor-talk] Rosettacode and amb

2009-12-08 Thread Jon Harper
Hi everyone, I wanted to use amb (one the of problems of rosettacode.org) in factor, but I'm not sure if the solution I came up with is good. Could you give some feedback ? Is there a easier/more efficient way than the "macro-map" macro I wrote ? The code is here (only the annotation) : http://pas

Re: [Factor-talk] Parsing "jquery" with peg.javascript

2009-12-08 Thread Jon Harper
Hi, I can parse jquery 1.3.2 uncompressed here on linux 32 bits, although the resulting ast is empty. ( scratchpad ) "/tmp/jquery-1.3.2.js" ascii file-contents parse-javascript --- Data stack: T{ ast-begin f ~vector~ } On Tue, Dec 8, 2009 at 8:47 PM, Hugo Schmitt wrote: > Hi, > > I read on a old

[Factor-talk] Parsing "jquery" with peg.javascript

2009-12-08 Thread Hugo Schmitt
Hi, I read on a older blog post from Chris Double that he was testing peg.javascript against jquery, and was already able to parse this library. But when I try to parse the uncompressed jquery.js by doing: USE: peg.javascript "c:/tmp/jquery.js" ascii file-contents parse-javascript Factor just fa