Commit graph

30 commits

Author SHA1 Message Date
Emi Simpson ad4ed220b6
Add sub_all_clause 2024-03-15 20:21:36 -04:00
Emi Simpson 46bbcca1b8
Add uncurry2 2024-03-15 20:21:36 -04:00
Emi Simpson 8d3edb1ea8
Add a notation of cantions 2024-03-15 20:21:35 -04:00
Emi Simpson 1cf1acaa08
Add in support for unification 2024-03-15 20:21:35 -04:00
Emi Simpson 3028075176
Add <= as an alias for map 2024-03-15 20:21:35 -04:00
Emi Simpson 4b4f9037cf
Ignore some unhelpful type errors 2024-03-15 20:21:35 -04:00
Emi Simpson eacf7542e5
Fixed order in Subst __repr__ 2024-03-15 20:21:34 -04:00
Emi Simpson 642225b285
Add << as an alias for binding a result 2024-03-15 20:21:34 -04:00
Emi Simpson ad31d63450
Implement substitution 2024-03-15 20:21:34 -04:00
Emi Simpson 0fef3804a4
Use strings in IR rather than lexemes 2024-03-15 20:21:34 -04:00
Emi Simpson ad012184c5
Add docs 2024-03-15 20:21:34 -04:00
Emi Simpson f84a340f0a
Factor out IR and Tok 2024-03-15 20:21:33 -04:00
Emi Simpson 9e6c7d504d
Add a combined lex+parse method 2024-03-15 20:21:33 -04:00
Emi Simpson 98253bb254
Souped up error checking 2024-03-15 20:21:33 -04:00
Emi Simpson 46e59ba918
Make IR generation fallible 2024-03-15 20:21:32 -04:00
Emi Simpson 15206f7776
Do IR generation 2024-03-15 20:21:32 -04:00
Emi Simpson 532a5a14d0
Get parsing for the sample document working 2024-03-15 20:21:32 -04:00
Emi Simpson b8b6ba708f
Use an action type alias rather than class 2024-03-15 20:21:32 -04:00
Emi Simpson f692e8dcca
Reverse parser direction + doc 2024-03-15 20:21:31 -04:00
Emi Simpson 3afed0c2e0
Souped up the lexer to track line & col numbers 2024-03-15 20:21:31 -04:00
Emi Simpson 61ee996c7a
Add ability to build parse tree 2024-03-15 20:21:31 -04:00
Emi Simpson 140fe67d5d
Add action erasure to parser 2024-03-15 20:21:31 -04:00
Emi Simpson da35286207
Add p_instance 2024-03-15 20:21:31 -04:00
Emi Simpson 439fc91fc9
Added try_converge 2024-03-15 20:21:29 -04:00
Emi Simpson 6e1952b148
Added a basic recognizer 2024-03-15 20:21:16 -04:00
Emi Simpson 5e84e50aa2
Move oracle table generating facilities to grammar.py 2024-03-15 20:21:16 -04:00
Emi Simpson f813d91736
Move grammar and lex table to their own file 2024-03-15 20:21:16 -04:00
Emi Simpson 00043d27dd
Genericize the lexer 2024-03-15 20:21:14 -04:00
Emi Simpson 03ff0d800e
Added an oracle table builder 2024-03-15 20:20:47 -04:00
Emi Simpson c452cf3158
Truncated history due to git corruption 2024-03-15 20:18:17 -04:00