aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2016-12-17 22:44:45 -0800
committerbnewbold <bnewbold@robocracy.org>2016-12-17 22:44:45 -0800
commitc8ddcd6248fd9cfea450b2fc52587b8179c0a0f8 (patch)
tree8ec96ed064f6ad31d6826bf0c7510fba3f8bdfe8
parent2e634496a6f362017d8f5f643d4ad30a3507dff9 (diff)
downloadmodelthing-c8ddcd6248fd9cfea450b2fc52587b8179c0a0f8.tar.gz
modelthing-c8ddcd6248fd9cfea450b2fc52587b8179c0a0f8.zip
modelica-parser tests TODO
-rw-r--r--modelica-parser-lalrpop/tests/parser.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/modelica-parser-lalrpop/tests/parser.rs b/modelica-parser-lalrpop/tests/parser.rs
index f5f493a..1a0f46f 100644
--- a/modelica-parser-lalrpop/tests/parser.rs
+++ b/modelica-parser-lalrpop/tests/parser.rs
@@ -38,3 +38,10 @@ end MinimalModel;
"#;
assert_eq!(&format!("{:?}", parse_model(example2).unwrap()), example2);
}
+
+// TODO: the following are illegal in Modelica
+// 2*-2 = -4
+// --2 = 2
+// ++2 = 2
+// 2--2 = 4
+// x^y^z (needs parens)