greg
cefaeb1180
Make ScopeResolver struct
2019-09-03 02:59:19 -07:00
greg
724237545f
Start work on scope resolver
2019-09-03 02:19:37 -07:00
greg
0f7f5cb416
Add new stage scope-resolution
2019-09-03 01:42:28 -07:00
greg
b4da57f5c5
Make Meta<Expression> exist everywhere it needs to
2019-09-02 14:41:09 -07:00
greg
8b87945bee
Wrap remaining Expressions in Meta
2019-09-02 14:13:53 -07:00
greg
f96469178d
Tests for qualified names
2019-09-01 01:07:00 -07:00
greg
34abb9b081
Start work on qualified names
2019-08-31 23:39:01 -07:00
greg
89d967aee4
FullyQualifiedSymbolName string representation
2019-08-30 22:55:59 -07:00
greg
0540df4024
Rename Val -> Sym
2019-08-30 19:10:16 -07:00
greg
61182a847f
Rename lookup_by_path -> lookup_by_fqsn
2019-08-30 19:05:01 -07:00
greg
f6dcd7f0b8
Use proper symbol_table lookup in eval
2019-08-30 19:03:52 -07:00
greg
16dc973aa6
Remove one use of symbol_table.lookup_by_name
...
Should aim to remove it entirely
2019-08-30 18:56:16 -07:00
greg
611e46938d
Make symbol names better
...
Refactor of symbol table to make name lookups
more precise, necessary for struct member lookups
2019-08-30 18:41:47 -07:00
greg
3d6447abb4
Start work on symbol table lookup by type name
2019-08-21 10:10:57 -07:00
greg
a74027bb1f
Start adding object access
2019-08-20 00:20:07 -07:00
greg
583e87c19a
Make apply_builtin compatible with Node
2019-08-19 21:49:46 -07:00
greg
12ed2f5c8e
Pass symbol table reference to to_repl
2019-08-19 19:38:24 -07:00
greg
3caf9c763c
Move eval tests
2019-08-16 10:39:21 -07:00
greg
cd20afc3c7
Add note about Nodes
2019-08-15 08:07:52 -07:00
greg
063a13f7ff
Move BinOp into ast subcrate
...
now builtins is only builtin semantics and has nothing to do with
operators
2019-08-15 06:28:40 -07:00
greg
b0a1f3337c
Clean up some operator code
2019-08-14 10:31:07 -07:00
greg
2e147e141e
Update a bunch of schala-lang libraries
2019-08-14 10:18:35 -07:00
greg
44938aa4e6
Starting to refactor binop
2019-08-14 09:26:08 -07:00
greg
44ae10b7ae
Add todo note
2019-08-14 07:54:39 -07:00
greg
fa1544c71f
Fix eval of negatives
2019-08-14 07:31:59 -07:00
greg
fde169b623
Make operators live in a submodule of ast
...
Starting with PrefixOp, BinOp happens next
2019-08-14 07:25:45 -07:00
greg
6e92b03f81
Add types for (some) builtins
2019-08-13 04:28:21 -07:00
greg
0dd6b26e5a
Move where PrefixOp lives
2019-08-13 04:17:17 -07:00
greg
a3bb3ee514
Note a bug
2019-08-12 14:13:20 -07:00
greg
7ae41e717d
Switch away from string builtins
2019-08-12 14:10:07 -07:00
greg
24089da788
Mapping names to builtins
2019-08-12 13:49:39 -07:00
greg
bfb36b90e4
Start refactoring how builtins work
...
Create an enum of builtin operations to start with
2019-08-12 13:10:22 -07:00
greg
e750247134
Successfully constructing a record
...
Not yet destructing it
2019-08-12 12:46:18 -07:00
greg
a8efe40b57
Add some documentation for the reduced AST
2019-08-12 11:55:35 -07:00
greg
c9bfa2b540
More named struct reduction work
2019-08-12 11:40:16 -07:00
greg
e708c728d2
Add a type to the prelude to test records
2019-08-12 11:33:03 -07:00
greg
b65d6e4c8e
Symbol table notes to self
2019-08-12 11:27:16 -07:00
greg
d9eca8ffb3
Handle records more properly in symbol table
2019-08-12 11:18:03 -07:00
greg
a600d34712
More work on named struct
...
commented for now becuase I need to fix things in the symbol table
2019-08-12 10:59:04 -07:00
greg
aae2ee53cd
More parsing debugging changes
2019-08-12 09:51:36 -07:00
greg
bf3dcc18d0
Fixed trace parsing debug output
2019-08-12 09:34:36 -07:00
greg
baf499ee5a
Fix symbol-table debugging
2019-08-05 03:37:37 -07:00
greg
3b19fc5aa9
Barest beginning of named struct implementation
2019-08-05 03:35:10 -07:00
greg
16bf166fa9
Fix bug with debug specifications
2019-08-05 03:31:10 -07:00
greg
d832583ed9
Fix pluralization wording
2019-08-05 01:11:01 -07:00
greg
87ecc6f0cb
Don't print out bare constructor
...
Instead convert to PrimObject
2019-08-05 01:07:48 -07:00
greg
ee87695626
Simplify Alternative data structure
...
Most of the subfields are duplicated on Subpattern so just use that
directly
2019-07-30 01:33:09 -07:00
greg
b62968379a
Replace matches with functional constructs
2019-07-28 11:15:28 -07:00
greg
aa705b4eee
Break out actual lib.rs functionality
...
To minimize the amount of meaningful text in files with generic names
2019-07-11 19:21:23 -07:00
greg
d67ccf5c7a
Refactor Expression struct
...
to have explicit kind and type_anno fields, to make it clearer
that this represents source-code level annotation and not any kind
of type inference intermediate product
2019-07-10 18:52:25 -07:00
greg
10e40669b5
Fix parsing debug options again
2019-06-22 12:33:28 -07:00
greg
6d3f5f4b81
Got things compiling again
...
But this is a bad design for the DebugAsk
2019-06-19 10:41:20 -07:00
greg
e3bd108e6c
Debug stuff
2019-06-19 03:27:18 -07:00
greg
2ec3b21ebf
Make output_wrapper more concise
2019-06-18 18:11:17 -07:00
greg
b6e3469573
Default argument to function
2019-06-16 21:36:59 -07:00
greg
32fe7430a4
Equals should be a token type
2019-06-16 16:07:27 -07:00
greg
c332747c3e
Move parse test code into separate module
2019-06-16 15:03:34 -07:00
greg
33c2786ea1
More complicated FormalParam type
2019-06-16 14:56:52 -07:00
greg
bc01a5ded8
Make reduced ast call handler be a separate method
2019-06-16 00:21:39 -07:00
greg
71386be80e
Make tests pass by using multiple-k lookahead
2019-06-14 02:28:14 -07:00
greg
ccdc02bbd0
Peek multiple tokens ahead
2019-06-14 01:30:53 -07:00
greg
3a207cf7a7
Make TokenHandler use an array and index
...
Instead of a peekable iterator, so I can implement LL(k) parsing
2019-06-14 00:44:54 -07:00
greg
66f71606ef
Add back some debugging for parsing
2019-06-14 00:23:47 -07:00
greg
53ce31ea8c
Start creating new TokenHandler infra
...
on top of old stuff
2019-06-14 07:21:32 +00:00
greg
4c688ce8b2
Lol grammar is no longer LL(1)
...
need to fix
2019-06-13 02:27:11 -07:00
greg
40579d80ce
More work on args
...
not quite done
2019-06-12 03:28:46 -07:00
greg
fa1257e2cd
Starting work on more complicated call expressions
...
Probably won't build yet
2019-06-12 00:20:20 +00:00
greg
e9fd20bfe5
A few more fixes to EBNF
2019-06-09 01:12:19 -07:00
greg
dfbd951aaf
Some fixes to the EBNF grammar
2019-06-09 01:08:32 -07:00
greg
6b47ecf2d7
First pass at putting EBNF grammar into rustdoc
2019-06-09 00:01:11 -07:00
greg
78d1e93e4b
Put back rudimentary debug output
2019-05-28 03:41:49 -07:00
greg
856c0f95ce
Wrap schala pass inputs in token struct
2019-05-28 03:07:35 -07:00
greg
3fa624bef4
Paramaterize debugging steps
2019-05-27 15:06:50 -07:00
greg
548a7b5f36
DebugRequests should be set
2019-05-26 04:16:40 -07:00
greg
fe7ba339b5
Per-stage timing output
2019-05-25 20:09:11 -07:00
greg
6a232907c5
Kill useless DebugRequest type
2019-05-25 19:31:41 -07:00
greg
eb2adb5b79
Moving options around
...
Showing time
2019-05-21 02:46:07 -07:00
greg
2b407a4a83
Total duration Timing
2019-05-21 02:06:34 -07:00
greg
6da6f6312d
Remove more unused code
2019-05-20 22:04:14 -07:00
greg
ce2a65b044
Clean up some unused code
2019-05-20 16:10:50 -07:00
greg
4ebf7fe879
Remove more unused variables
2019-05-14 11:15:12 -07:00
greg
efbeff916a
Allow this unused macro
...
for tests only
2019-05-14 10:51:32 -07:00
greg
2b8e2749a4
Get rid of unneeded mut's
2019-04-29 23:57:38 -07:00
greg
6c369b072f
Debug immediate working for symbol table
2019-03-31 01:13:40 -07:00
greg
938c0401d1
Some various work
2019-03-27 02:20:43 -07:00
greg
3a98096b61
Add back debug passes command completion support
2019-03-19 19:37:29 -07:00
greg
9476e7039b
Doc requests in type system
2019-03-19 19:26:05 -07:00
greg
c767402865
Remove some no-longer-necessary indirection
2019-03-19 19:16:41 -07:00
greg
61972410ea
Functionality to request/respond to meta items
2019-03-19 19:12:32 -07:00
greg
d3f9430a18
Avoid unnecessary String
2019-03-19 19:01:04 -07:00
greg
14c08bbcdb
Get rid of EvalOptions
...
and associated types
2019-03-19 18:40:21 -07:00
greg
1622a6ce44
Grand culling
...
Deleting a bunch of old code related to the old way the interpreter
worked
2019-03-14 00:51:33 -07:00
greg
7e899246e9
More refactoring in main Schala driver
2019-03-14 00:15:13 -07:00
greg
8610bd7a87
Port Schala to new framework
...
Evaluating a Schala function in the REPL works again with no debug info
2019-03-13 22:43:44 -07:00
greg
42aa316a23
Fix custom attribute thing
...
Upon updating rust version, the unrestricted_attribute_token thing
broke, but I'm changing this anyway so whatever
2019-03-12 01:05:10 -07:00
greg
2bf777f37b
Add this note to self
2019-03-11 19:36:10 -07:00
greg
bdcae36b60
More cleaning up of how scopes are stored
...
on Symbol
2019-03-11 02:47:47 -07:00
greg
dbcd2278a6
Renamings
2019-03-11 02:35:42 -07:00
greg
2490aaf3f4
Add types necessary for refactor of Symbol table
2019-03-11 01:36:11 -07:00
greg
d4ad97b39a
start preparing to get rid of symbol_table.lookup_by_name
2019-03-10 17:32:47 -07:00