Added power operator '^', added OP_POW

- added TOKEN_CARROT to clex.[ch]
This commit is contained in:
2021-02-10 17:26:20 -06:00
parent 24bbc22cd4
commit 1539a7e676
5 changed files with 20 additions and 3 deletions

View File

@@ -391,6 +391,7 @@ CToken cosmoL_scanToken(CLexState *state) {
case ':': return makeToken(state, TOKEN_COLON);
case '*': return makeToken(state, TOKEN_STAR);
case '%': return makeToken(state, TOKEN_PERCENT);
case '^': return makeToken(state, TOKEN_CARROT);
case '#': return makeToken(state, TOKEN_POUND);
case '/': return makeToken(state, TOKEN_SLASH);
// two character tokens