diff options
| author | _ov4 <hausemasterstream@gmail.com> | 2026-03-03 07:22:19 +0000 |
|---|---|---|
| committer | _ov4 <hausemasterstream@gmail.com> | 2026-03-03 07:22:19 +0000 |
| commit | cc7b9b34e99fa17357e14ac69f5fb2d1535b5512 (patch) | |
| tree | 40f093ef98c062a14a3b839ad2337646437645e9 /lib/Parser/Parser.cc | |
| parent | 1b524f75401a6318fbaf3fee0bfcbe59348f2e51 (diff) | |
Added all built-in functions
Diffstat (limited to 'lib/Parser/Parser.cc')
| -rw-r--r-- | lib/Parser/Parser.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Parser/Parser.cc b/lib/Parser/Parser.cc index 236aa01..9bdd821 100644 --- a/lib/Parser/Parser.cc +++ b/lib/Parser/Parser.cc @@ -19,6 +19,7 @@ Parser::Parser(Lexer &L) : Lex(L) { BinopPrecedence['+'] = 20; BinopPrecedence['-'] = 20; + BinopPrecedence['&'] = 20; BinopPrecedence['*'] = 40; BinopPrecedence['/'] = 40; @@ -148,6 +149,7 @@ std::unique_ptr<ExprAST> Parser::ParsePrimary() { case tok_length: return ParseStringBuiltin("LENGTH"); case tok_mid: return ParseStringBuiltin("MID"); case tok_right: return ParseStringBuiltin("RIGHT"); + case tok_left: return ParseStringBuiltin("LEFT"); case tok_lcase: return ParseStringBuiltin("LCASE"); case tok_ucase: return ParseStringBuiltin("UCASE"); |
