LLOOP Index | GSP Language | GSP Library | Framework Classes | Component Classes

shape.gsp

This is the verbatim text of the file "shape.gsp" part of the LLOOP package. The copyright remains with Michel MEHL. All rights reserved.



import int;

symbol Shape
 test 
 {{
   "valid file" : pass file://points.txt 
   "error at line 1" : fail file://err_at_first_line.txt {to}
   "error at EOF" : fail file://err_at_eof.txt
 }};

Shape::= 'Point' '(' 'x' '=' int ',' 'y' '=' int [',' Color] ')' [Shape]
{{
}}
| 'Hole' [ Shape ]
{{
}}
| {{ }}

Color::= 'blue' 
| 'red'
| 'white'
{{
}}

This file is part of the LLOOP Reversible Object-Oriented Parser Generator. Copyright (c) 2005-2006 Michel MEHL, France. All rights reserved. LLOOP is distributed by the company ERSA SaRL.


Copyright (c) 2005-2006 Michel MEHL, Haguenau, France
LLOOP version 1.1