From c8ddcd6248fd9cfea450b2fc52587b8179c0a0f8 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Sat, 17 Dec 2016 22:44:45 -0800 Subject: modelica-parser tests TODO --- modelica-parser-lalrpop/tests/parser.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'modelica-parser-lalrpop/tests') 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) -- cgit v1.2.3