A3t::findOperator

- Added support for operator identification.
- Extended test script.
This commit is contained in:
Paul Beckingham
2013-09-01 12:25:04 -04:00
parent 8fddf97c73
commit b83e6d0dea
3 changed files with 64 additions and 0 deletions

View File

@@ -108,6 +108,29 @@ int main (int argc, char** argv)
a3t.identity ("modifier", "word");
a3t.identity ("modifier", "noword");
// Operators.
a3t.identity ("operator", "and");
a3t.identity ("operator", "or");
a3t.identity ("operator", "xor");
a3t.identity ("operator", "<=");
a3t.identity ("operator", ">=");
a3t.identity ("operator", "!~");
a3t.identity ("operator", "!=");
a3t.identity ("operator", "=");
a3t.identity ("operator", ">");
a3t.identity ("operator", "~");
a3t.identity ("operator", "!");
a3t.identity ("operator", "_hastag_");
a3t.identity ("operator", "_notag_");
a3t.identity ("operator", "-");
a3t.identity ("operator", "*");
a3t.identity ("operator", "/");
a3t.identity ("operator", "+");
a3t.identity ("operator", "-");
a3t.identity ("operator", "<");
a3t.identity ("operator", "(");
a3t.identity ("operator", ")");
Tree* tree = a3t.parse ();
if (tree)
tree->dump ();