| LLOOP Index | GSP Language | GSP Library | Framework Classes | Component Classes |
This is the verbatim text of the file "palette.gsp" part of the LLOOP package. The copyright remains with Michel MEHL. All rights reserved.
import word; /* import token defined in word.gsp */
import uint; /* import token defined in uint.gsp */
symbol PaletteColor extends class CPaletteColor(0, 0, 0);
Palette ::= { PaletteColor }
{{
printf("\nPalette defines %d color(s)\n", $1(#));
}}
PaletteColor ::= word '=' 'rgb' '(' uint ',' uint ',' uint ')'
{{
m_iRed = $2;
m_iGreen = $3;
m_iBlue = $4;
}}
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 |