From: Ferruccio Guidi Date: Mon, 3 Feb 2003 17:27:45 +0000 (+0000) Subject: new interface for text_of_query/text_of_result + bug fixes X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=92515ddd2fc43f07f4dbb22c6bc98399ef1a2dd7;p=helm.git new interface for text_of_query/text_of_result + bug fixes --- 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