| LLOOP Index | GSP Language | GSP Library | Framework Classes | Component Classes |
This is the verbatim text of the file "ini.gsp" part of the LLOOP package. The copyright remains with Michel MEHL. All rights reserved.
import ini_comment; /* For pre-processing comment */
import id;
import block;
/* ------------------------------------------------------------------------- */
/* To simplify searches through the list of sections,
* we make sections direcly inherit from a string
* that will hold that name instead of looking inside
* the right-hand 'Block' token (see below).
* The same trick is used for the data.
*/
string SectionList;
string DataList;
/* ------------------------------------------------------------------------- */
/* A Ini file contains a set of sections
*/
SIniFile ::= [ SectionList ]
{{
}}
/* A section has a name enclosed by square brackets on a single line.
* Here the name can be a random string. The block token is
* used for that purpose.
*/
SectionList ::= '[' block ']' { ' ' } '\n' [ DataList ] [ SectionList ]
{{
String::operator=($1);
}}
/* A data is assigned a value. This value is a random string
* which ends with the new line.
*/
DataList ::= id '=' block '\n' [ DataList ]
{{
String::operator=($1);
}}
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 |