comparison src/luan/impl/LuanParser.java @ 1496:6c830be6be98

parse fix
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 08 May 2020 10:46:13 -0600
parents 56fb5cd8228d
children d9a5405a3102
comparison
equal deleted inserted replaced
1495:2e8a5df45d56 1496:6c830be6be98
1019 Expr exp1 = SingleExpr(); 1019 Expr exp1 = SingleExpr();
1020 if( exp1==null ) 1020 if( exp1==null )
1021 return parser.failure(null); 1021 return parser.failure(null);
1022 if( parser.match('^') ) { 1022 if( parser.match('^') ) {
1023 Spaces(); 1023 Spaces();
1024 Expr exp2 = required(PowExpr()); 1024 Expr exp2 = required(UnaryExpr());
1025 Expr newExp = new Expr(Val.SINGLE,false); 1025 Expr newExp = new Expr(Val.SINGLE,false);
1026 newExp.add( "LuanImpl.pow(" ); 1026 newExp.add( "LuanImpl.pow(" );
1027 newExp.addAll( exp1.single() ); 1027 newExp.addAll( exp1.single() );
1028 newExp.add( "," ); 1028 newExp.add( "," );
1029 newExp.addAll( exp2.single() ); 1029 newExp.addAll( exp2.single() );