Project

General

Profile

Revision aa223e69 src/parser_lustre.mly

View differences:

src/parser_lustre.mly
422 422
| signed_const { [$1] }
423 423
| signed_const COMMA signed_const_array { $1 :: $3 }
424 424

  
425
signed_const_struct:
426
| IDENT EQ signed_const { [ ($1, $3) ] }
427
| IDENT EQ signed_const COMMA signed_const_struct { ($1, $3) :: $5 }
428

  
425 429
signed_const:
426 430
  INT {Const_int $1}
427 431
| REAL {Const_real $1}
......
430 434
| MINUS INT {Const_int (-1 * $2)}
431 435
| MINUS REAL {Const_real ("-" ^ $2)}
432 436
| MINUS FLOAT {Const_float (-1. *. $2)}
437
| LCUR signed_const_struct RCUR { Const_struct $2 }
433 438
| LBRACKET signed_const_array RBRACKET { Const_array $2 }
434 439

  
435 440
dim:

Also available in: Unified diff