correction bug Op
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Generated from /home/tuanvu/Desktop/M1/S8/PDS/tp2-vsl-pds/src/main/antlr/VSLParser.g by ANTLR 4.13.1
|
||||
// Generated from c:/Users/Thibaut/Documents/Git/PDS/tp2-vsl-pds/src/main/antlr/VSLParser.g by ANTLR 4.13.1
|
||||
|
||||
package TP2;
|
||||
import TP2.asd.Program.*;
|
||||
@@ -383,8 +383,8 @@ public class VSLParser extends Parser {
|
||||
|
||||
((ExpressionContext)_localctx).out = new BinopExpression(
|
||||
switch(((ExpressionContext)_localctx).op.getType()) {
|
||||
case PLUS -> PLUS;
|
||||
case MINUS -> MINUS;
|
||||
case PLUS -> Op.PLUS;
|
||||
case MINUS -> Op.MINUS;
|
||||
default -> throw new IllegalArgumentException("Unknown operator");
|
||||
},
|
||||
((ExpressionContext)_localctx).left.out,
|
||||
@@ -476,8 +476,8 @@ public class VSLParser extends Parser {
|
||||
|
||||
((Td_expressionContext)_localctx).out = new Program.BinopExpression(
|
||||
switch(((Td_expressionContext)_localctx).op.getType()) {
|
||||
case TIMES -> TIMES;
|
||||
case DIV -> DIV;
|
||||
case TIMES -> Op.TIMES;
|
||||
case DIV -> Op.DIV;
|
||||
default -> throw new IllegalArgumentException("Unknown operator");
|
||||
},
|
||||
((Td_expressionContext)_localctx).left.out,
|
||||
|
||||
Reference in New Issue
Block a user