Skip to content

Tolerant parsing mode #93

Open
Open

Description

@gorkem

Provide a new mode of parsing that Instead of throwing an exception and aborting parsing on the first JS error encoutered, parser attempts to continue parsing and provides collections of all the syntax errors.

Activity

  1. angelozerr commented on Nov 25, 2015

    @angelozerr

    This issue is required to integrate shift inside any editor, because editor needs to maintain a valid AST even if editor content doesn't contain valid content (when editor user is typing some content and open completion for instance)

    acorn/esprima provides this feature (loose parser), and can be used in any editor. tern which uses acorn is a sample http://ternjs.net/doc/demo/

    IMHO, If you can provide loose parser, a lot of IDE could use shift.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions