Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
smartnoise-sql / snsql / sql / parser
  ..
  Makefile
  README.md
  SqlSmall.g4
  SqlSmallErrorListener.py
  SqlSmallLexer.py
  SqlSmallParser.py
  SqlSmallVisitor.py
  __init__.py
Size: Mime:

Extending the Grammar

  • Add grammar to .g4
    • Names at bottom
    • Resolution works upward
  • Add parse-only tests
  • Create AST objects
    • Make sure string round-trip works (use self.children)
    • Properly handle if certain syntax is optional
    • implement evaluate and symbol
  • Add ast round-trip tests
  • Add parse that goes to AST
  • Add evaluation tests
  • Add validate test
  • Add rewrite tests
  • Add tests to run queries