Objj 2.0 PEG ecmascript

52 views
Skip to first unread message

smartmobili

unread,
Feb 11, 2012, 5:46:17 AM2/11/12
to Cappuccino & Objective-J
Hi,

I know that ObjectiveJ2 is supposed to used Parsing Expression
Grammar(PEG) to parse ecmascript and ObjectiveJ and today I found an
open source(google)
peg parser
http://es-lab.googlecode.com/svn/trunk/site/esparser/index.html
Wouldn't be a good start for ObjectiveJ 2.0 ?

krodelin

unread,
Feb 11, 2012, 10:35:22 AM2/11/12
to Cappuccino & Objective-J
Regarding PEG Parsers in general: I found PEG.js quite good (only used
it for simple stuff though):
http://pegjs.majda.cz/

CU,

Udo


On Feb 11, 11:46 am, smartmobili <v.richo...@gmail.com> wrote:
> Hi,
>
> I know that ObjectiveJ2 is supposed to used Parsing Expression
> Grammar(PEG) to parse ecmascript and ObjectiveJ and today I found an
> open source(google)
> peg parserhttp://es-lab.googlecode.com/svn/trunk/site/esparser/index.html

Randy Luecke

unread,
Feb 11, 2012, 12:04:50 PM2/11/12
to Cappuccino & Objective-J
Objective-j 2 is already well underway with our own parser...
http://github.com/Tolmasky/language

Francisco Tolmasky

unread,
Feb 14, 2012, 8:09:51 AM2/14/12
to objec...@googlegroups.com
Yeah, the reason behind writing our own parser is that if you try to parse our source files (or any files of meaningful size) with those existing PEG parsers you'll soon find they take far too long. For some context, if I recall correctly PEG.js took something like 90 seconds to parse jquery.js. (We try to parse your entire Obj-J program in less (hopefully far less) than a second)
Reply all
Reply to author
Forward
0 new messages