add parser chech for precedence in arithmetic expressions
This commit is contained in:
parent
8cc5f2f9f7
commit
0494bf05af
1 changed files with 3 additions and 1 deletions
|
|
@ -106,6 +106,8 @@ TEST_DEF_STATIC(Simple) {
|
|||
};
|
||||
|
||||
exec("10 + 15;");
|
||||
exec("print 10 + 15 * 10;");
|
||||
exec("print 10 + 15 * (10 + 10) + 5;");
|
||||
exec("print 10 + 15;");
|
||||
exec("print (10 + 15) * 20;");
|
||||
exec("var k : int;");
|
||||
|
|
@ -134,7 +136,7 @@ TEST_DEF_STATIC(Complex) {
|
|||
|
||||
TEST_DEF(Interpreter) {
|
||||
testEntry();
|
||||
// testSimple();
|
||||
testSimple();
|
||||
testSimpleSave();
|
||||
// testComplex();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue