Commit Graph

46 Commits

Author SHA1 Message Date
greg 8ef5a28aff Evaluator now only prints when a builtin print is called 2018-07-26 00:52:45 -07:00
greg 0c78f50568 Frame-aware lookups 2018-07-26 00:52:45 -07:00
greg 1eaf201145 Move some code around 2018-07-26 00:52:45 -07:00
greg 876373c9fd Function calls work 2018-07-26 00:52:45 -07:00
greg 63f5f155ae Temporarily disable type-erroring
and tighten some code
2018-07-26 00:52:45 -07:00
greg e0cc12276c Evaluate binding declarations 2018-07-26 00:52:45 -07:00
greg d69970a806 Separate Value and NamedStruct syntactic categories 2018-07-26 00:52:45 -07:00
greg 63c3e0a4db More operator stuff 2018-07-26 00:52:45 -07:00
greg 547def990e Operator changes 2018-07-26 00:52:45 -07:00
greg df86e0c16e Make sigil field private 2018-07-26 00:52:45 -07:00
greg 274bf80b5d Function evaluation work 2018-07-26 00:52:45 -07:00
greg f0a39ac88a Give State a pointer to its parent
For function call lookups
2018-07-26 00:52:45 -07:00
greg 85e65273fe Finished initial BinOp/PrefixOp 2018-07-26 00:52:45 -07:00
greg 36174140bc ReplState -> State
Not everythign is a repl
2018-07-26 00:52:45 -07:00
greg 440783bb64 More work on evaluating applications
for later testing + to kill a compiler warning
2018-07-26 00:52:45 -07:00
greg 3651461bbc Some more structure in evaluator 2018-07-26 00:52:45 -07:00
greg 7730457878 Revert "Starting to split project into multiple crates"
This reverts commit e3b0f4a51e.
Bah, this was a bad idea, wrong way to do it
2018-07-26 00:52:45 -07:00
greg 46dbac7f69 Starting to split project into multiple crates 2018-07-26 00:52:45 -07:00
greg f68167f3a2 Halfway done with evaluating tuples 2018-07-26 00:52:45 -07:00
greg 9afbd2305f Literal non-primitive values 2018-07-26 00:52:45 -07:00
greg 2fbb8f2b2f Can eval custom data constructors now 2018-07-26 00:52:45 -07:00
greg bb880d44fa Some more primitive types + binop-checking 2018-07-26 00:52:45 -07:00
greg ddd861fbea Have + do something different with strings
Needed to introduce polymorphism soon
2018-07-26 00:52:45 -07:00
greg 50ceb92d6b Move type-checking into a module 2017-10-04 02:07:30 -07:00
greg dd7736e32d Add some resources 2017-10-03 21:28:17 -07:00
greg abbbb34901 Some very basic evaluation stuff 2017-10-02 20:11:27 -07:00
greg 3ff4a34aeb kill some non-used variable warnings 2017-10-02 01:52:46 -07:00
greg 89482e5b5a Use a Result 2017-10-01 19:31:43 -07:00
greg 6435d5e958 Make eval output nicer 2017-10-01 19:29:05 -07:00
greg f6536e7ebd Evaluation stuff 2017-10-01 19:09:55 -07:00
greg c5cb223168 Super-minimal type-checking with just ints 2017-10-01 17:50:26 -07:00
greg d16a0c9380 Evaluation of literals 2017-10-01 12:55:28 -07:00
greg daf9878020 Kill some unused code 2017-10-01 00:50:13 -07:00
greg f825c87397 Type checking beginnings 2017-10-01 00:48:08 -07:00
greg 8d2a65b44e Starting eval framework 2017-09-30 23:30:02 -07:00
greg dd22ca0291 Grand renaming of things 2017-09-19 22:11:01 -07:00
greg 5d15d60ab6 Structs implemented
albeit very inefficiently
2017-09-19 22:11:01 -07:00
greg e0f5f01e69 Kill error messges for not using Result 2017-09-19 22:11:01 -07:00
greg 424998c128 Lists work! 2017-09-19 22:11:01 -07:00
greg b93625819c Update ReducedValue to handle lists 2017-09-19 22:11:01 -07:00
greg dbf5886aad List evaluation technically working 2017-09-19 22:11:01 -07:00
greg 4da771036a Part of evaluation path for indexing done 2017-09-19 22:11:01 -07:00
greg 3911c45dde Introduced index notation 2017-09-19 22:11:01 -07:00
greg 039022bfc5 Get rid of println 2017-09-19 22:11:01 -07:00
greg 421a9a7e9b Abstract evaluation into EvaluationMachine trait 2017-09-19 22:11:00 -07:00
greg 1a4bf24ab1 Move schala-specific stuff into its own module 2017-09-19 22:11:00 -07:00