Skip to content

Latest commit

 

History

History
59 lines (35 loc) · 1.48 KB

CHANGELOG.md

File metadata and controls

59 lines (35 loc) · 1.48 KB

Changelog

All notable changes to this project will be documented in this file.

v0.8.1

  • Fix get_cls in BaseNodeRegistry, now updates fields of classes already in the registry

v0.8.0

  • Support for Terminal nodes in get_text
  • Add optional text attribute to BaseNode
  • Fix marshalling to recursively transform children

v0.7.0

  • Return None if get_position has no better result
  • Add type signatures
  • Improve lexer errors

v0.6.0

  • Support get_position for Terminal nodes

v0.5.0

  • Rewrite as a staged approach
    • autodetection of ANTLR fields and labels: Unshaped doesn’t exist anymore
    • more isolated steps: enables serialization (and possibility to let ANTLR parser run in a separate service)
    • more powerful definition of reshaped node (= AliasNode) fields using tree paths
    • easier definition of transforms (simplification & AliasNodes) (no ANTLR API knowledge needed, no other visiting in transformation methods)
    • more shared code

v0.4.2

Added

  • Add parameter to parse function to set a custom error listener (or remove the default listener)

v0.4.1

  • Fix setup.py

v0.4.0

Changed

  • Better package structure

v0.3.0

Added

  • Helper to handle case sensitivity during lexing of ANTLR grammar

Changed

  • The fields for AstNode subclasses are now defined in _fields_spec instead of _fields so _fields is now compatible with how the ast module defines it.
  • parse() doesn't accept a visitor but returns the parsed input.