parser-notes.org 1.0 KB

Concepts

Superpower

parser
A parser seeks a file character by character and interprets it in some way.
Token
an enum to classify found objects
Tokenizer
the rules by which a Token is classified

Installation

Parabola (Arch linux)

  1. install mono
  2. 2 .get monodevelop and msbuild from AUR (non-free components)
  3. add Superpower package from nuget (who knows what gets downloaded or what information is leaked)

Comments on Superpower

  • [2020-01-05 dom] I found two example projects
  • https://github.com/nblumhardt/superpower-simple-sql (from the developer of Superpower)
  • https://github.com/SuperJMN/ElevatorControlLanguage.git (from a StackOverflow or StackExchange question).

Questions

  • Syntax tree
  • double underscore
  • covariant result type
  • Is this casting? ConstantExpression as Expression? why is the new needed?
  • #+begin_SRC csharp n => (Expression) new ConstantExpression(n) #+end_SRC
  • Why does class SqlParser need to be static?
  • what is this get; set;?