[WIP] Sketching IR and parsing support for affine maps, affine expressions
Run test case:
$ mlir-opt test/IR/parser-affine-map.mlir
test/IR/parser-affine-map.mlir:3:30: error: expect '(' at start of map range
#hello_world2 (i, j) [s0] -> i+s0, j)
^
PiperOrigin-RevId: 202736856
diff --git a/lib/Parser/Token.h b/lib/Parser/Token.h
index 9c4d4f9..e5e4fc4 100644
--- a/lib/Parser/Token.h
+++ b/lib/Parser/Token.h
@@ -32,6 +32,7 @@
#define TOK_IDENTIFIER(NAME) NAME,
#define TOK_LITERAL(NAME) NAME,
#define TOK_PUNCTUATION(NAME, SPELLING) NAME,
+#define TOK_OPERATOR(NAME, SPELLING) NAME,
#define TOK_KEYWORD(SPELLING) kw_##SPELLING,
#include "TokenKinds.def"
};
@@ -99,3 +100,4 @@
} // end namespace mlir
#endif // MLIR_LIB_PARSER_TOKEN_H
+