John
fc3cbbf450
cl-token: - Minimize data redundancy by consolidating TokenKind::Literal; TokenData::{String, Identifier} - Rename Op to Punct cl-ast: - Remove ExprKind::{Member, Call} in favor of making them 'binary' operators - Consolidate boxes (TODO: consolidate more boxes) - Remove repetition vecs in favor of boxes (this may come with performance tradeoffs!) cl-lexer: - Reflect changes from cl-token cl-interpret, cl-repl/src/examples: - Reflect changes from cl-ast cl-parser: - Switch to Pratt parsing for expressions - TODO: Code cleanup - TODO: Use total ordering for Precedence instead of binding powers (that's what the binding powers are there for anyway) - Switch functional parsers to take Punct instead of TokenKind - It's not like we need a `for`-separated list - Remove `binary` macro. No longer needed with precedence climbing. - Repurpose `operator` macro to produce both the operator and the respective Precedence - Remove several of the smaller parser functions, since they've been consolidated into the larger `exprkind`
21 lines
360 B
TOML
21 lines
360 B
TOML
[workspace]
|
|
members = [
|
|
"cl-repl",
|
|
"cl-typeck",
|
|
"cl-interpret",
|
|
"cl-structures",
|
|
"cl-token",
|
|
"cl-ast",
|
|
"cl-parser",
|
|
"cl-lexer",
|
|
]
|
|
resolver = "2"
|
|
|
|
[workspace.package]
|
|
repository = "https://git.soft.fish/j/Conlang"
|
|
version = "0.0.5"
|
|
authors = ["John Breaux <j@soft.fish>"]
|
|
edition = "2021"
|
|
license = "MIT"
|
|
publish = ["soft-fish"]
|