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

english_sentence.gsp

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



symbol sentence
  test 
  {{
    "Valid sentence"  : pass {the happy brown guy likes a cool drink}
    "Valid sentence"  : pass {the girl reads the newspaper}
    "Valid sentence"  : pass {the hungry blond girl eats the cake}
    "Not accepted sentence"  : fail {I am a sentence}
  }} ;

sentence ::= article { english_adjectives.adjective } noun transitive_verb article [ english_adjectives.temperature ] english_sentence.noun
{{
}}

article ::= ('a' | 'the')
{{
}}

noun ::= ('guy' | 'girl' | 'drink' | 'newspaper' | 'cake')
{{
}}

transitive_verb ::= ('takes' | 'likes' | 'writes' | 'reads' | 'eats')
{{
}}




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