Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Improve the parser to detect syntax errors

#160

I can throw a lot of invalid syntax into a .j file and it will run without even a warning. Surely syntax errors should be of the highest possible severity?

It's quite scary to think that a well meaning parser can discard things I write in my source code without even mentioning it.

It also makes me wonder if the parsing could be a lot more efficient.

Would you guys like some input in this area? I'm not an expert but I know a little bit about LALR(1) grammars and lexical analysis (another area of the source that looks like it could use some improving - long piped regexes are generally slower than checking several smaller regexes and switching states).

Clearly it's a hugely complex area but it's certainly something that needs to be as close to 100% spot-on as possible :)

Reported by Chris Corbyn · December 11th, 2008 @ 03:08 PM

State: new
Milestone: none
Assigned to: nobody

Activity

  1. Francisco Tolmasky
    Francisco Tolmasky

    By all means take a stab at it.

    December 11th, 2008 @ 10:59 PM

  2. Chris Corbyn
    Chris Corbyn

    Ok, no promises but I'll give it a shot and see if I can provide a patch.

    December 12th, 2008 @ 01:01 AM

  3. Ross Boucher
    Ross Boucher
    • Tag changed from lexer, objective-j, parser, preprocessor to @acknowledged, lexer, objective-j, parser, preprocessor

    Any progress here? The ticket has been moved to github, so comment there please:

    http://github.com/280north/cappu.../89

    May 5th, 2009 @ 11:38 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.