6 %token LPAR RPAR EOF POINT COMMA
10 %type <Types.nest> main
12 main: nest EOF { $1 };
14 scalar: CONST { Scalar(float_of_string $1) }
15 | CONST POINT { Scalar(float_of_string $1) }
16 | CONST POINT CONST { Scalar(float_of_string ($1 ^ "." ^ $3)) };
18 vector: LPAR nestpar RPAR { Vector($2) };
20 nestpar: nest { Unary($1) }
21 | nest COMMA nestpar { Binary($1,$3) };