Commit Graph

27946 Commits

Author SHA1 Message Date
Richard Feldman
29704663d7 Location and Region shouldn't derive Copy 2019-08-01 22:11:39 -04:00
Richard Feldman
00a02d597a Fix sorting by vendoring the pathfinding crate. 2019-08-01 18:39:02 -04:00
Richard Feldman
e3e92b56fb Attempt to sort all the symbols. 2019-07-31 23:06:53 -04:00
Richard Feldman
83cbc1d927 Reproduce some false positive cycle detection. 2019-07-31 01:59:44 -04:00
Richard Feldman
fb9cf4b60e Use topological sort. 2019-07-31 01:34:20 -04:00
Richard Feldman
e4629b1992 Test Procedure generation. 2019-07-30 23:48:26 -04:00
Richard Feldman
047484a8c8 Add mut_map_from_pairs and empty_region helpers 2019-07-30 23:48:13 -04:00
Richard Feldman
b9b6d9e5f0 Expose procedure map 2019-07-30 23:25:42 -04:00
Richard Feldman
bb01878830 Add failing test for assignment reordering 2019-07-30 23:14:55 -04:00
Richard Feldman
f98e7acbf4 Don't count closure args as locals. 2019-07-30 23:10:11 -04:00
Richard Feldman
3358a10f46 Drop an unused arg 2019-07-30 22:48:34 -04:00
Richard Feldman
36aec73d75 Suppress an unused warning 2019-07-30 22:48:27 -04:00
Richard Feldman
74ad51aae9 Overhaul canonicalization to use global symbols. 2019-07-30 22:42:25 -04:00
Richard Feldman
1b5df3f1c3 Fix unused assignment detection bug. 2019-07-28 16:49:44 -04:00
Richard Feldman
5161a03638 Reproduce unused assignments bug 2019-07-27 17:11:29 -04:00
Richard Feldman
cbc909f8f7 Fix shadowing detection bug. 2019-07-27 17:10:47 -04:00
Richard Feldman
9360026328 Reproduce shadowing bug with Fibonacci test 2019-07-26 23:52:38 -04:00
Richard Feldman
1531b7ba1a Drop unused imports 2019-07-26 23:51:32 -04:00
Richard Feldman
024f891f32 Restore remaining parse tests 2019-07-26 23:44:45 -04:00
Richard Feldman
23f6e650af Restore more parser tests 2019-07-26 23:41:43 -04:00
Richard Feldman
c8edddfd48 Fix parsing edge case re: function calls at eof 2019-07-26 23:35:33 -04:00
Richard Feldman
4df8064407 Use r# in parser tests. 2019-07-22 22:11:50 -04:00
Richard Feldman
39c4380a31 Move precedence tests into test_canonicalize 2019-07-22 22:07:44 -04:00
Richard Feldman
a1234d68ba Introduce canonicalization 2019-07-22 22:07:44 -04:00
Richard Feldman
ee8a9e3867 Add Located, and parse assignments as a Vec 2019-07-22 22:07:44 -04:00
Richard Feldman
d71b646f6a Fix some of eval 2019-07-22 22:07:44 -04:00
Richard Feldman
5868f64fb2 Comment out eval for now 2019-07-22 22:07:44 -04:00
Richard Feldman
c7a923d226 Move stdlib into its own crate 2019-07-22 22:07:44 -04:00
Richard Feldman
4502d2630f Add collections.rs 2019-07-22 22:03:57 -04:00
Richard Feldman
26d9a17f68 Update author in Cargo.toml 2019-07-22 21:59:15 -04:00
Richard Feldman
51d87f21b8 Revise fast_fraction 2019-07-12 19:31:56 -04:00
Richard Feldman
6be7a9b8a5 Add a Display case for Approx 2019-07-12 19:31:33 -04:00
Richard Feldman
07d051c06f Approx literals 2019-07-11 23:56:52 -04:00
Richard Feldman
8349594c03 Remove attempt() from number literal parsing 2019-07-11 23:26:23 -04:00
Richard Feldman
67a507080d Introduce Approx 2019-07-11 23:14:32 -04:00
Richard Feldman
5da8a29015 Add some stdlib stuff 2019-07-11 22:48:26 -04:00
Richard Feldman
f4788b9079 Remove attempt() calls from operator() 2019-07-11 22:12:39 -04:00
Richard Feldman
21c98d6364 Parse && and || 2019-07-11 22:03:48 -04:00
Richard Feldman
79951cec5e Operator associativity and precedence 2019-07-11 22:03:28 -04:00
Richard Feldman
fde3cedfef Fix paren parsing bug, thread errors through eval 2019-07-09 23:19:50 -04:00
Richard Feldman
07a05b90fc Restore eval, add |> operator 2019-07-08 23:35:11 -04:00
Richard Feldman
7bcc471d4a Function application no longer uses commas.
Also, numbers can have digits separated by underscores.
(Previously it was separated by whitespace; this no longer works.)
2019-07-07 22:18:00 -04:00
Richard Feldman
d9c1e23105 Update examples to new closure syntax 2019-07-07 11:06:57 -04:00
Richard Feldman
36bea3a13f Change closure syntax to \a b => c 2019-07-07 10:54:32 -04:00
Richard Feldman
3651151f12 Incorporate Located, reorganize operator 2019-07-06 18:44:47 -04:00
Richard Feldman
38a4ac5c5c Disable eval for now 2019-07-06 13:39:20 -04:00
Richard Feldman
6abec2b0f2 Drop unnecessary parens 2019-07-06 11:19:37 -04:00
Richard Feldman
78df28c463 Add cli/README.md 2019-06-23 19:19:06 -04:00
Richard Feldman
77f3199ec9 Move examples into cli/examples 2019-06-23 19:16:41 -04:00
Richard Feldman
38d86fc9f3 Add a recursive Fibonacci example 2019-06-23 19:12:52 -04:00