CS 61A calculators
parsing
text => lextical analysis => tokens => syntactic analysis => expression
1 | '(+ 1' |
1 | '(', '+', 1 |
1 | Pair('+', Pair(1, ...)) |
reduce
reduce(
pass in the parameters(maybe in the form of a list) and apply them to the function
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
