From 92515ddd2fc43f07f4dbb22c6bc98399ef1a2dd7 Mon Sep 17 00:00:00 2001 From: Ferruccio Guidi Date: Mon, 3 Feb 2003 17:27:45 +0000 Subject: [PATCH] new interface for text_of_query/text_of_result + bug fixes --- helm/ocaml/cic_textual_parser/cicTextualParser.mly | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/helm/ocaml/cic_textual_parser/cicTextualParser.mly b/helm/ocaml/cic_textual_parser/cicTextualParser.mly index 5887fc072..11313aeff 100644 --- a/helm/ocaml/cic_textual_parser/cicTextualParser.mly +++ b/helm/ocaml/cic_textual_parser/cicTextualParser.mly @@ -155,7 +155,6 @@ %token VARURI %token INDTYURI %token INDCONURI -%token ALIAS %token LPAREN RPAREN PROD LAMBDA COLON DOT SET PROP TYPE CAST IMPLICIT NONE %token LETIN FIX COFIX SEMICOLON LCURLY RCURLY CASE ARROW LBRACKET RBRACKET EOF %right ARROW @@ -163,7 +162,11 @@ %type CicTextualParser0.interp_codomain option) -> Cic.term)> main %% main: - expr EOF { $1 } + | EOF { raise CicTextualParser0.Eof } /* FG: was never raised */ + | expr EOF { $1 } + | expr SEMICOLON { $1 } /* FG: to read several terms in a row + * Do we need to clear some static variables? + */ ; expr2: CONURI exp_named_subst -- 2.39.2