浏览代码

CiviC programs may not be emptygit status

Taddeus Kroes 11 年之前
父节点
当前提交
b496d6e00b
共有 2 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      parser.mly
  2. 0 0
      test/basic/check_error/empty.cvc

+ 1 - 1
parser.mly

@@ -65,7 +65,7 @@ basic_type:
   | BOOL  { Bool }
 
 program:
-  | decl* EOF
+  | decl+ EOF
   { Program ($1, loc $startpos $endpos) }
 
 decl:

+ 0 - 0
test/basic/check_error/empty.cvc