Parses an identifier into an Expr, which gets transpiled into a variable reference. These variables need to be kept track of during transpilation in case their value changes during runtime, which needs to be accounted for during transpilation.
(identifier: Pair<Rule>)
| 317 | //These variables need to be kept track of during transpilation in case their value changes during runtime, |
| 318 | // which needs to be accounted for during transpilation. |
| 319 | fn parse_identifier(identifier: Pair<Rule>) -> Expr { |
| 320 | return Expr::Variable(ExprVariableReference { |
| 321 | identifier: identifier.as_str().to_string(), |
| 322 | inferred_type: None, |
| 323 | }); |
| 324 | } |
| 325 | |
| 326 | //Parses a block into an Expr |
| 327 | fn parse_block(expression: Pair<Rule>) -> ExprBlock { |