Bonjour,
simple : ocamlc m'envoie ch*** alors que ocamlyacc lui a genere sans broncher :
/* File parser.mly */
%{
type equa =
£spaces£ £/spaces£|Val of float
£spaces£ £/spaces£|Var of string
£spaces£ £/spaces£|Fun of string*(equa)*string
£spaces£ £/spaces£|UOp of string*(equa)
£spaces£ £/spaces£|Op of string*(equa)*(equa)
;;
%}
%token REAL INT
%token VAR
%token PLUS MINUS
%token TIMES DIV POW
%token LPAREN RPAREN
%token LOG TAN SIN COS
%token EOL
%token PI E
%token Leol
%left PLUS MINUS
%left TIMES DIV
%left POW
(…)