diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-09-21 14:05:50 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-09-21 14:05:50 (GMT) |
| commit | 939a04d3c77bf9aa8d54e912f5e12817de51756c (patch) | |
| tree | 750119bf74b8fbcb409eaf02d03877c00056613d /src/pim/Token.cpp | |
| parent | 6e44ebc358d1206c147f514225373da07b43c015 (diff) | |
| download | powder-939a04d3c77bf9aa8d54e912f5e12817de51756c.zip powder-939a04d3c77bf9aa8d54e912f5e12817de51756c.tar.gz | |
Testing new vm/language WIP
Diffstat (limited to 'src/pim/Token.cpp')
| -rw-r--r-- | src/pim/Token.cpp | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/src/pim/Token.cpp b/src/pim/Token.cpp new file mode 100644 index 0000000..2db451e --- /dev/null +++ b/src/pim/Token.cpp @@ -0,0 +1,47 @@ +#include "Token.h" + +namespace pim +{ + namespace compiler + { + std::string Token::SymbolNames[] = { + "=", + "function", + "(", + ")", + "/", + "*", + "+", + "-", + "%", + "INTEGER", + "DECIMAL", + "PARTICLE", + "integer", + "decimal", + "particle", + "is", + "<", + "<=", + ">", + ">=", + "==", + "!=", + "neighbour", + "do", + "of", + "break", + "continue", + "if", + "then", + "end", + "kill", + "create", + "transform", + "get", + "IDENTIFIER", + ",", + "INVALID SYMBOL" + }; + } +}
\ No newline at end of file |
