comparison src/luan/interp/LuanParser.java @ 137:573ce091ae00

minor parser fix git-svn-id: https://luan-java.googlecode.com/svn/trunk@138 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Thu, 12 Jun 2014 03:54:52 +0000
parents 486a0641bca4
children 3b384dc5ca91
comparison
equal deleted inserted replaced
136:7e160d2f6d9c 137:573ce091ae00
774 parser.begin(); 774 parser.begin();
775 Expr exp = SubExpr(in); 775 Expr exp = SubExpr(in);
776 if( exp==null ) 776 if( exp==null )
777 exp = NameExpr(in); 777 exp = NameExpr(in);
778 if( exp!=null && parser.match('=') ) { 778 if( exp!=null && parser.match('=') ) {
779 Spaces(in);
779 fields.add( new TableExpr.Field( exp, required(expr(Expr(in))) ) ); 780 fields.add( new TableExpr.Field( exp, required(expr(Expr(in))) ) );
780 return parser.success(); 781 return parser.success();
781 } 782 }
782 parser.rollback(); 783 parser.rollback();
783 Code code = Expr(in); 784 Code code = Expr(in);