Changeset 22184 in project


Ignore:
Timestamp:
01/03/11 06:42:17 (9 years ago)
Author:
Alan Post
Message:

jbogenturfa'i: remove header from PEG grammar.

I'll consolidate this information in another place.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release/4/jbogenturfahi/trunk/gerna.peg

    r21684 r22184  
    1 ; This is a Parsing Expression Grammar for Lojban.
    2 ; See http://www.pdos.lcs.mit.edu/~baford/packrat/
    3 ;
    4 ; All rules have the form:
    5 ;
    6 ;       name <- peg-expression
    7 ;
    8 ; which means that the grammatical construct "name" is parsed using
    9 ; "peg-expression". 
    10 ;
    11 ; 1)  Names in lower case are grammatical constructs.
    12 ; 2)  Names in UPPER CASE are selma'o (lexeme) names, and are terminals.
    13 ; 3)  Concatenation is expressed by juxtaposition with no operator symbol.
    14 ; 4)  / represents *ORDERED* alternation (choice).  If the first
    15 ;     option succeeds, the others will never be checked.
    16 ; 5)  ? indicates that the element to the left is optional.
    17 ; 6)  * represents optional repetition of the construct to the left.
    18 ; 7)  + represents one-or-more repetition of the construct to the left.
    19 ; 8)  () serves to indicate the grouping of the other operators.
    20 ;
    21 ; Longest match wins.
    22 
    23 ; --- GRAMMAR ---
    24 
    251text <- intro-null NAI-clause* text-part-2 (!text-1 joik-jek)? text-1? faho-clause EOF?
    262
Note: See TracChangeset for help on using the changeset viewer.