1
0
Fork 0
Commit Graph

38 Commits

Author SHA1 Message Date
Sean Sube d26c29812e add recursive groups to both versions 2022-10-04 08:49:11 -05:00
Sean Sube 19643aa6c1 implement parenthesized groups in both 2022-10-01 15:00:10 -05:00
Sean Sube 3251b4a4e1 bind show to nothing to reduce nulls in TS 2022-10-01 14:33:02 -05:00
Sean Sube 1591c5bb41 add a generic version of findIndex to agda 2022-10-01 00:52:22 -05:00
Sean Sube b1ab8ef3f0 add build to readme 2022-10-01 00:28:06 -05:00
Sean Sube e7760fa553 use readonly arrays throughout TS 2022-10-01 00:25:42 -05:00
Sean Sube f68bfa0ea1 remove a few unnecessary cases, remove default value from findMap 2022-10-01 00:17:39 -05:00
Sean Sube 9faf6bea67 reorder some declarations in TS parse 2022-10-01 00:06:22 -05:00
Sean Sube 93e55bc3bb add binexpr ctor to TS 2022-10-01 00:06:22 -05:00
Sean Sube d47f5ff606 commentary for TS version 2022-10-01 00:06:22 -05:00
Sean Sube aec21b20b5 refactor TS split to match agda better 2022-10-01 00:06:22 -05:00
Sean Sube 8d5088d89d newline after TS output 2022-10-01 00:06:22 -05:00
Sean Sube abacf81021 remove mistaken dep on tsc base 2022-10-01 00:06:22 -05:00
Sean Sube cb42e9cea8 reorder agda emit fns 2022-10-01 00:06:22 -05:00
Sean Sube ea6bbc4462 correctly parse multi-digit numbers 2022-10-01 00:06:22 -05:00
Sean Sube 45a6f2d034 add div/0 check 2022-10-01 00:06:22 -05:00
Sean Sube e553b51dc0 implement most of the TS version 2022-10-01 00:06:22 -05:00
Sean Sube 3f90dda2e7 add TS equivalent 2022-10-01 00:06:22 -05:00
Sean Sube a9004d0a88 move agda files into subdir 2022-10-01 00:06:18 -05:00
Sean Sube 94f8f83da4 move show fns to their own module 2022-09-29 23:07:05 -05:00
Sean Sube ee7272bf5e new style parsing for all bin exprs 2022-09-29 20:16:32 -05:00
Sean Sube b285803e36 start switching to new style eval 2022-09-29 19:43:35 -05:00
Sean Sube 8b71d759ad support and ignore whitespace in exprs 2022-09-29 08:55:03 -05:00
Sean Sube 43e11f92a8 more commentary 2022-09-29 08:30:16 -05:00
Sean Sube ff41fa8717 split eval to its own module, clean up a bit 2022-09-29 08:24:38 -05:00
Sean Sube 9a0c106b6f add helpers to emit result and empty 2022-09-28 21:31:34 -05:00
Sean Sube beecbff936 implement mult and div 2022-09-28 20:57:05 -05:00
Sean Sube 5cc7ce195c implement minus operator 2022-09-28 18:16:26 -05:00
Sean Sube 93a0a0bfd5 evaluate terms and exprs in correct order 2022-09-28 18:16:15 -05:00
Sean Sube cb7b1486fc evaluate exprs in input order 2022-09-28 18:06:44 -05:00
Sean Sube 3707654ec2 keep all statements, put numbers the right way around 2022-09-28 18:04:00 -05:00
Sean Sube 01148d8193 use a char list for operators 2022-09-28 17:34:13 -05:00
Sean Sube 0ecc7467fe switch split char to semicolon, remove some debug lines 2022-09-28 17:32:35 -05:00
Sean Sube 065885f0d0 read me 2022-09-28 17:11:27 -05:00
Sean Sube b3951c37cf fix some subscripts 2022-09-28 17:09:14 -05:00
Sean Sube 4b4a2fddd3 implement + 2022-09-28 17:06:38 -05:00
Sean Sube c50f49ebcb some actual calc stuff 2022-09-28 00:05:16 -05:00
Sean Sube 1e94ee8299 basics 2022-09-27 23:12:48 -05:00