parse

Go parsers for web formats

MIT License

Stars
403

Bot releases are hidden (Show)

parse - v2.6.0

Published by tdewolff over 2 years ago

parse - v2.5.32

Published by tdewolff over 2 years ago

parse - v2.5.31

Published by tdewolff over 2 years ago

  • HTML: fix attribute quoting bugs
parse - v2.5.30

Published by tdewolff over 2 years ago

  • HTML: keep original single/double quote for attribute values as much as possible
parse - v2.5.29

Published by tdewolff over 2 years ago

parse - v2.5.27

Published by tdewolff almost 3 years ago

  • JS: parse comma-operator expressions as a list, not a tree
parse - v2.5.26

Published by tdewolff almost 3 years ago

  • JS: fix WhileToFor option
parse - v2.5.24

Published by tdewolff almost 3 years ago

  • JS: const statement must have initializer
  • JS: mark var uses in for statement parameters as different from declarations inside for statement block
parse - v2.5.23

Published by tdewolff almost 3 years ago

parse - v2.5.22

Published by tdewolff about 3 years ago

  • HTML: set Text equal to Data for raw tag content, fixes #84
  • JS: fix JSON output for single-quoted strings, negative numbers, and return InvalidJSON form block en expression statements, fixes #88
  • JS: make JSON() optionally implemented on AST nodes, see #85
  • JS: bytes.Buffer now expected for JSON() instead of returning a string, fixes #85
  • JS: implement top level await, fixes #87
  • JS: add test cases for class field definitions
parse - v2.5.21

Published by tdewolff about 3 years ago

  • JS: allow line and paragraph separators in strings, fixes #82
parse - v2.5.20

Published by tdewolff about 3 years ago

  • JS: fix let{e}={e} where second e cannot be a declaration when there is the possibility that it might be arguments for an arrow func
  • JS: add JSON function, fixes #79
parse - v2.5.19

Published by tdewolff over 3 years ago

  • JS: fix panic in Walk
  • JS: fix parsing of a++==b, see #75
parse - v2.5.18

Published by tdewolff over 3 years ago

  • JS: properly parse {a:b=1} when part of arrow function arguments
  • JS: add JS() to convert AST to valid JS
  • JS: add AST walker functionality