2017-12-13 00:52:54 -08:00
# TODO Items
2018-04-27 02:19:09 -07:00
- sketch of an idea for the REPL:
-each compiler pass should be a (procedural?) macro like
compiler_pass!("parse", dataproducts: ["ast", "parse_tree"], {
match parsing::parse(INPUT) {
Ok(
PASS.add_artifact(
}
2018-04-24 20:31:00 -07:00
-should have an Idris-like `cast To From` function
2018-04-23 19:45:58 -07:00
- REPL:
- want to be able to do things like `:doc Identifier` , and have the language load up these definitions to the REPL
2018-04-23 19:35:25 -07:00
* change 'trait' to 'interface'
2018-04-23 21:33:15 -07:00
-think about idris-related ideas of multiple implementations of a type for an interface (+ vs * impl for monoids, for preorder/inorder/postorder for Foldable)
2018-04-23 19:35:25 -07:00
2017-12-13 00:52:54 -08:00
* Share state between programming languages
* idea for Schala - scoped types - be able to define a quick enum type scoped to a function ro something, that only is meant to be used as a quick bespoke interface between two other things
2018-02-21 03:39:40 -08:00
* another idea, allow:
type enum {
type enum MySubVariant {
SubVariant1, SubVariant2, etc.
}
Variant1(MySubVariant),
Variant2(...),
}
2017-12-13 00:52:54 -08:00
* idea for Schala: both currying *and* default arguments!
ex. fn a(b: Int, c:Int, d:Int = 1) -> Int
a(1,2) : Int
a(1,2,d=2): Int
a(_,1,3) : Int -> Int
a(1,2, c=_): Int -> Int
a(_,_,_) : Int -> Int -> Int -> Int
2018-02-10 15:10:06 -08:00
- AST : maybe replace the Expression type with "Ascription(TypeName, Box< Expression > ) nodes??
- parser: add a "debug" field to the Parser struct for all debug-related things
2018-02-20 17:56:13 -08:00
-scala-style html"dfasfsadf${}" string interpolations!
2018-02-21 02:09:40 -08:00
*Compiler passes architecture
-ProgrammingLanguageInterface defines a evaluate_in_repl() and evaluate_no_repl() functions
-these take in a vec of CompilerPasses
struct CompilerPass {
name: String,
run: fn(PrevPass) -> NextPass
}
2018-02-21 04:32:17 -08:00
-change "Type...." names in parser.rs to "Anno..." for non-collision with names in typechecking.rs
2018-03-09 00:50:06 -08:00
-get rid of code pertaining to compilation specifically, have a more generation notion of "execution type"