This website requires JavaScript.
00774700a6
Add 2d array example
master
Alek Ratzloff
2022-02-18 17:47:40 -08:00
9801674815
Format array.__str__ output
Alek Ratzloff
2022-02-17 19:02:13 -08:00
76a50ce8c0
Add array example, ArrayObj implementation
Alek Ratzloff
2022-02-17 18:53:29 -08:00
fe2a83174f
Add the start of array impl
Alek Ratzloff
2022-02-16 17:07:50 -08:00
6f4484ec12
Better error messages
Alek Ratzloff
2022-02-16 15:55:05 -08:00
8c0e1a02f5
Update Span to include line and col information
Alek Ratzloff
2022-02-16 15:39:05 -08:00
d77bf48fe9
Add name-scanning pass to compiler
Alek Ratzloff
2022-02-16 15:19:14 -08:00
f70c27a423
Remove syn/error.rs; it was removed as a mod a while ago
Alek Ratzloff
2022-02-11 18:33:43 -08:00
b4ae936832
Add comment processing, add a comment to factorial.sy to test it out
Alek Ratzloff
2022-02-11 18:31:12 -08:00
899ceda248
Remove old parser impl comment
Alek Ratzloff
2022-02-11 18:19:55 -08:00
1f2b43755c
Rename peg->parser
Alek Ratzloff
2022-02-11 16:13:28 -08:00
25beed3cd4
Add include statement
Alek Ratzloff
2022-02-11 16:09:41 -08:00
3563378db7
Allow dead code in span.rs
Alek Ratzloff
2022-02-11 16:00:37 -08:00
7414c7df70
WIP: Implement peg parser using pest
Alek Ratzloff
2022-02-11 15:58:10 -08:00
f4699e5e21
WIP: Re-implement parser in pest
Alek Ratzloff
2022-02-11 14:50:09 -08:00
abd7f7960a
Fix T and F builtins to be values, not functions
Alek Ratzloff
2022-02-11 11:38:43 -08:00
1f642b9739
Change if function stack ordering, add some basic math ops to Int, add factorial example
Alek Ratzloff
2022-02-11 11:10:14 -08:00
a8cf2898e1
Add stack printing debug builtin
Alek Ratzloff
2022-02-11 10:08:42 -08:00
7eb4fa4ef6
Update error message, add Int.__eq__
Alek Ratzloff
2022-02-04 19:03:04 -08:00
3b034052e5
Move to VTableBuilder for IntObj VTable, add __splat__ impl
Alek Ratzloff
2022-02-04 18:43:55 -08:00
9e5b1b3176
Add VTableBuilder
Alek Ratzloff
2022-02-04 18:40:52 -08:00
cb9e09064a
Implement __bool__, add if builtin, vtable imporvements
Alek Ratzloff
2022-02-04 17:29:41 -08:00
5ec955d544
Add note of defeat re: includes to compile
Alek Ratzloff
2022-01-26 17:04:04 -08:00
ec8793a494
Remove Obj::into_gc() and have Obj ctors return a Gc instead
Alek Ratzloff
2022-01-25 17:36:07 -08:00
427d354857
Change BoolObj::new to return a Gc pointer, add T and F builtins
Alek Ratzloff
2022-01-25 16:47:19 -08:00
fa0203b441
Add "nightly" feature to gc library, add unsize+coerce_unsized features
Alek Ratzloff
2022-01-25 16:40:59 -08:00
d2f041798c
Add bool builtin
Alek Ratzloff
2022-01-24 19:43:30 -08:00
7b9539b5e8
Add TODO.md to .gitignore
Alek Ratzloff
2022-01-24 18:43:54 -08:00
5cef5b1d43
Break out obj module into individual files by type
Alek Ratzloff
2022-01-24 18:35:41 -08:00
95fc8a85df
Rename mod object->obj
Alek Ratzloff
2022-01-24 18:10:21 -08:00
9d5e5f14ca
Get rid of file-wide allow(dead_code) in object
Alek Ratzloff
2022-01-24 18:03:01 -08:00
44e2442b9c
quote.0 -> quote.index()
Alek Ratzloff
2022-01-24 17:55:31 -08:00
ea01f8e191
Remove Rc wrapping of BuiltinFnPtr in BuiltinFn wrapper
Alek Ratzloff
2022-01-24 17:53:29 -08:00
070e497e1f
Objs replace Values
Alek Ratzloff
2022-01-18 14:39:06 -08:00
248dfd3630
Minor cleanup in main()
Alek Ratzloff
2022-01-18 14:36:45 -08:00
c57c4f1ab3
Remove lazy_static dependency
Alek Ratzloff
2022-01-18 14:31:32 -08:00
aad0e8adc2
Add new base object stuff, gc dependency
Alek Ratzloff
2022-01-17 19:54:19 -08:00
d06e1b82dd
Remove max_arena_objects configuration
Alek Ratzloff
2022-01-17 19:51:19 -08:00
5d30719fa2
Remove Obj and Arena
Alek Ratzloff
2022-01-17 19:15:22 -08:00
953fe7cb2a
Squash some more warnings from unused member in Machine
Alek Ratzloff
2022-01-16 19:53:08 -08:00
280214c799
Remove Thunks for now.
Alek Ratzloff
2022-01-16 19:51:55 -08:00
69431c4926
Add vm::builtins mod as a place for builtin functions to live
Alek Ratzloff
2022-01-16 19:22:02 -08:00
4cf377ff1e
Temporarily remove Value::ObjPtr because we aren't using those yet
Alek Ratzloff
2022-01-16 19:21:28 -08:00
07ce1378cf
Add tilde to allowed characters for words
Alek Ratzloff
2022-01-16 19:19:40 -08:00
399ade6ba0
Fix parser test that was failing because of Span PartialCmp
Alek Ratzloff
2022-01-16 19:16:26 -08:00
b3cf1c5681
Add call site discovery to call frames, and add call stack error messages
Alek Ratzloff
2022-01-16 18:56:33 -08:00
dfac970cc7
Fix a bug with how line/col positions are calculated
Alek Ratzloff
2022-01-16 18:49:38 -08:00
1eb7eb73cb
Remove RuntimeSpanError and just incorporate it into RuntimeError; add Span information to compiled instructions
Alek Ratzloff
2022-01-16 16:49:54 -08:00
67054b2c84
Update branching example to use new syntax
Alek Ratzloff
2022-01-16 16:49:09 -08:00
9704e07c45
Add call stack error chain
Alek Ratzloff
2022-01-16 15:25:58 -08:00
2752bdf6d3
Add source string to Span
Alek Ratzloff
2022-01-16 14:40:09 -08:00
effa99e65d
Add Stmt and incorporate meta statements
Alek Ratzloff
2022-01-16 14:14:50 -08:00
c3d667ec54
Add .vscode directory to gitignore
Alek Ratzloff
2022-01-16 14:07:26 -08:00
ced903c0c1
Update hello world example to match new syntax
Alek Ratzloff
2022-01-16 14:05:28 -08:00
cc1d55d826
Remove colon token, and update assign atom to use colon instead of equals
Alek Ratzloff
2022-01-16 13:08:23 -08:00
c493ab69bb
Add meta token
Alek Ratzloff
2022-01-16 12:27:26 -08:00
88080c750b
Rename bang->apply
Alek Ratzloff
2022-01-12 22:14:54 -08:00
90f27a4108
Add branching and more coherent method of function calls
Alek Ratzloff
2022-01-12 21:49:41 -08:00
c31be8142c
Update hello world to use a function
Alek Ratzloff
2022-01-12 19:43:29 -08:00
907c8ce1af
Move src/syn/word.rs to src/scope.rs; add BuiltinFn
Alek Ratzloff
2022-01-12 18:00:11 -08:00
1c669decc4
Finally have things printing to the screen
Alek Ratzloff
2022-01-12 17:35:48 -08:00
a190157eeb
Minor cosmetic update to parser.rs
Alek Ratzloff
2022-01-09 18:04:32 -08:00
cbe22bb89e
Start adding eval and machine implementations, remove Inst for now
Alek Ratzloff
2022-01-08 10:13:27 -08:00
9e20dcf59c
Add parser, vm, objects
Alek Ratzloff
2022-01-07 20:30:55 -08:00
946a927b09
Initial commit WIP
Alek Ratzloff
2021-12-21 11:29:59 -08:00