aboutsummaryrefslogtreecommitdiffstats
path: root/src/parser.rs
AgeCommit message (Collapse)AuthorFilesLines
2024-05-29Get rid of BigInt.Rose Hogenson1-2/+1
Too much trouble, tbh. Who needs more than 64 bits anyway?
2024-05-29Use a stack for the parser.Rose Hogenson1-144/+175
I don't have much experience writing parsers with a stack, but it seems pretty straightforward: the stack just records what you've seen so far, and you simplify down some prefix of the stack whenever the precedence decreases.
2024-05-28Implement modulo.Rose Hogenson1-0/+4
2024-05-28Use num crate.Rose Hogenson1-9/+9
2024-05-27Fix order of operations.Rose Hogenson1-38/+48
PEMDAS
2024-05-27Fix backtracking in the parser.Rose Hogenson1-70/+103
2024-05-27Rewrite in Rust.Rose Hogenson1-0/+202