Skip to content

Add new "verbose" mode #55

@jviereck

Description

@jviereck

This was brought up before and also arises in #54. The idea is to have a verbose mode, which splits out the current from of the AST. If the verbose mode is turned off, following properties are omitted from the AST:

  • range
  • raw
  • kind

The current parse function accepts as second argument flags:

  function parse(str, flags) {

to turn on verbose mode, I think the flags string could just contain a v, like:

  parse('/hello/', 'v')

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions