3 ms·
Here's some pseudocode that should help you get started on a very simple thing evalExpression: switch peekChar ( evalFunctionCall 0-9 parseNu
by im3w1l 2y ago
Here's some pseudocode that should help you get started on a very simple thing
evalExpression:
switch peekChar
( evalFunctionCall
0-9 parseNumber
" parseString
a-zA-Z parseAndGetVariable
evalFunctionCall
fn = evalExpression
arguments = evalExpression until )
fn(arguments)