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

nobacktracking.gsp

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



import string;
import word;

string fileName;
string command;

symbol fileCommand
test 
{{
  "accepted, no backtracking needed": pass "myfile : remove"
  "not accepted because no backtracking": fail "README.txt: remove"
  
}};

fileCommand ::= fileName ':' command
{{
}}

fileName ::= string
{{
  set($1);
}}
| word
{{
  set($1);
}}

command ::= 'remove'
{{
  set(#1);
}}
| 'touch'
{{
  set(#1);
}}
| 'create'
{{
  set(#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