Olivier Mengué

Show:

What's happening?

  • Improve token regexp towards JavaScript's full RegExp syntax

    JS/CC should use the same regexp syntax as JavaScript ast this is what the user is familiar with. In particular: - '\xxx' support should be dropped as it is ambiguous and is not in JavaScript - '\uXX' and '\UXXXX' should be added for full Unicode support - '.' should have the same effect (not match end of line)

    2009-07-30 00:43:04 UTC in JS/CC LALR(1) Parser Generator

  • Comment: A parser must be an object

    I'm using JS/CC 0.30.

    2009-07-30 00:36:17 UTC in JS/CC LALR(1) Parser Generator

  • JSCC 0.30 on Windows does not find its drivers

    When running jscc.exe from different directory that JS/CC's, it does not find its driver : error: unable to open file 'driver_jscript.js_' Workaround: run jscc.exe from its directory and use full paths to source and target files. For an example build script that work around the bug see http://code.google.com/p/registry-files-tools/source/browse/trunk/Build.cmd.

    2009-07-30 00:34:13 UTC in JS/CC LALR(1) Parser Generator

  • __parse() should return %% of the top rule

    Currently __parse() returns an error count. There is no clean way to return %% from the top rule to the __parse() caller. The only way is to use an ugly global variable. And this makes parsing non thread safe. Instead __parse() could return an object containing: - src: the parsed string - errors: the error list - result: %% of the top grammar rule For an attempt to implement this around...

    2009-07-30 00:27:11 UTC in JS/CC LALR(1) Parser Generator

  • A parser must be an object

    JS/CC should generate an object from the grammar. - this would avoid namespace pollution - this would make the ##PREFIX## trick useless. As a workaround we can currently manually wrap the generated code with an object. See http://registry-files-tools.googlecode.com/svn-history/r3/trunk/msreg.par.

    2009-07-30 00:20:42 UTC in JS/CC LALR(1) Parser Generator

About Me

  • 2001-12-05 (8 years ago)
  • 394390
  • dolmen (My Site)
  • Olivier Mengué

Send me a message