swifties
FLOX
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
swifties
-
Let's write a compiler, part 5: A code generator
Depends on the complexity of your queries, but if you have a narrow subset that you're interested in, implementing a recursive descent parser for just those parts of the syntax that fits your problem like a glove could be a better solution.
https://github.com/codr7/swifties
- Show HN: Swifties – a custom language construction kit in Swift
-
Let's write a compiler, part 3: A parser
What few seem to realize is that it's perfectly possible to abstract out some of the work and create an extensible foundation for manual parsers.
Since it's all regular code, you can use the full power of the host language to deal with the problem.
https://github.com/codr7/swifties/blob/main/Sources/Swifties...
FLOX
-
Let's write a compiler, part 3: A parser
The code isn't perfect, it's a learning project and still WIP, but you can check the code for a parser for the LOX language ( c-like) from 'Crafting Interpreters' in this project. 'Ast.fs' and 'Parser.fs' should be enough to get an idea of what it's doing.You can also google the grammar of the language which is quite simple:
https://github.com/BazookaMusic/FLOX
What are some alternatives?
sqlite-parser - JavaScript implentation of SQLite 3 query parser
pl0c - Self-hosting PL/0 to C compiler to teach basic compiler construction from a practical, hands-on perspective.
langjam
rhizome - A JIT for Ruby, implemented in pure Ruby
zetasql - ZetaSQL - Analyzer Framework for SQL
vitess-sqlparser - simply SQL Parser for Go ( powered by vitess and TiDB )
go-mysql-server - A MySQL-compatible relational database with a storage agnostic query engine. Implemented in pure Go.
Presto - The official home of the Presto distributed SQL query engine for big data
sqlparse - A non-validating SQL parser module for Python
grammars-v4 - Grammars written for ANTLR v4; expectation that the grammars are free of actions.
JSqlParser - JSqlParser parses an SQL statement and translate it into a hierarchy of Java classes. The generated hierarchy can be navigated using the Visitor Pattern