Changeset 4118 for devel-tools


Ignore:
Timestamp:
Dec 15, 2009, 1:20:38 PM (11 years ago)
Author:
yura
Message:
  • Use Rfp tokens.
Location:
devel-tools/trunk/LL1GrammarAnalyzers/LL1Grammars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • devel-tools/trunk/LL1GrammarAnalyzers/LL1Grammars/Rf5LLGr.f

    r4114 r4118  
    99
    1010program ->
    11   (ENTRY | EXTERN | WORD)
     11  (ENTRY | EXTERNAL | WORD)
    1212maybe_sc ->
    1313  (SC)
     
    1919  (LCURL)
    2020sentences ->
    21   (CHAR | COMMA | EQ | LANGU | LPAR |
    22   NUM | REALNUM | VAR | WORD)
     21  (CHAR | COMMA | EQL | LANGU | LPAR |
     22  NUMB | VAR | WORD)
    2323sc_sentences ->
    2424  (SC)
    2525sentence ->
    26   (CHAR | COMMA | EQ | LANGU | LPAR |
    27   NUM | REALNUM | VAR | WORD)
     26  (CHAR | COMMA | EQL | LANGU | LPAR |
     27  NUMB | VAR | WORD)
    2828conditions ->
    29   (COMMA | EQ)
     29  (COMMA | EQL)
    3030conditions2 ->
    31   (CHAR | COMMA | EQ | LANGU | LCURL |
    32   LPAR | NUM | REALNUM | VAR | WORD)
     31  (CHAR | COMMA | EQL | LANGU | LCURL |
     32  LPAR | NUMB | VAR | WORD)
    3333exp ->
    34   (CHAR | LANGU | LPAR | NUM | REALNUM |
    35   VAR | WORD)
     34  (CHAR | LANGU | LPAR | NUMB | VAR |
     35  WORD)
    3636exp_head ->
    37   (CHAR | LANGU | LPAR | NUM | REALNUM |
    38   VAR | WORD)
     37  (CHAR | LANGU | LPAR | NUMB | VAR |
     38  WORD)
    3939static_symbol ->
    40   (CHAR | NUM | REALNUM | WORD)
     40  (CHAR | NUMB | WORD)
    4141name ->
    4242  (WORD)
     
    4848  ($END)
    4949maybe_sc ->
    50   ($END | ENTRY | EXTERN | WORD)
     50  ($END | ENTRY | EXTERNAL | WORD)
    5151extern_defs ->
    5252  (SC)
     
    5656  (RCURL)
    5757exp ->
    58   (COL | COMMA | EQ | RANGU | RCURL |
     58  (COL | COMMA | EQL | RANGU | RCURL |
    5959  RPAR | SC)
    6060
     
    6565: ($END)
    6666     /* empty */
    67 | (EXTERN)
    68      EXTERN #extern_defs SC #program
     67| (EXTERNAL)
     68     EXTERNAL #extern_defs SC #program
    6969| (ENTRY | WORD)
    7070     func_def #maybe_sc #program
     
    7272
    7373#maybe_sc
    74 : ($END | ENTRY | EXTERN | WORD)
     74: ($END | ENTRY | EXTERNAL | WORD)
    7575     /* empty */
    7676| (SC)
     
    100100: (RCURL)
    101101     /* empty */
    102 | (CHAR | COMMA | EQ | LANGU | LPAR |
    103   NUM | REALNUM | VAR | WORD)
     102| (CHAR | COMMA | EQL | LANGU | LPAR |
     103  NUMB | VAR | WORD)
    104104     sentence #sc_sentences
    105105;
     
    113113
    114114sentence
    115 : (CHAR | COMMA | EQ | LANGU | LPAR |
    116   NUM | REALNUM | VAR | WORD)
     115: (CHAR | COMMA | EQL | LANGU | LPAR |
     116  NUMB | VAR | WORD)
    117117     #exp conditions
    118118;
     
    121121: (COMMA)
    122122     COMMA #exp COL conditions2
    123 | (EQ)
    124      EQ #exp
     123| (EQL)
     124     EQL #exp
    125125;
    126126
    127127conditions2
    128 : (CHAR | COMMA | EQ | LANGU | LPAR |
    129   NUM | REALNUM | VAR | WORD)
     128: (CHAR | COMMA | EQL | LANGU | LPAR |
     129  NUMB | VAR | WORD)
    130130     #exp conditions
    131131| (LCURL)
     
    134134
    135135#exp
    136 : (COL | COMMA | EQ | RANGU | RCURL |
     136: (COL | COMMA | EQL | RANGU | RCURL |
    137137  RPAR | SC)
    138138     /* empty */
    139 | (CHAR | LANGU | LPAR | NUM | REALNUM |
    140   VAR | WORD)
     139| (CHAR | LANGU | LPAR | NUMB | VAR |
     140  WORD)
    141141     exp_head #exp
    142142;
    143143
    144144exp_head
    145 : (CHAR | NUM | REALNUM | WORD)
     145: (CHAR | NUMB | WORD)
    146146     static_symbol
    147147| (LPAR)
     
    158158| (WORD)
    159159     WORD
    160 | (NUM)
    161      NUM
    162 | (REALNUM)
    163      REALNUM
     160| (NUMB)
     161     NUMB
    164162;
    165163
  • devel-tools/trunk/LL1GrammarAnalyzers/LL1Grammars/Rf5LLGr.g

    r4114 r4118  
    77/*      gr.exe rfpllgr.g >rfpllgr.f                              */
    88
    9 %token EXTERN ENTRY
    10 %token SC COL COMMA EQ
     9%token EXTERNAL ENTRY
     10
     11%token SC COL COMMA EQL
    1112
    1213%token LPAR RPAR
     
    1516
    1617%token VAR
    17 %token CHAR WORD NUM REALNUM
     18%token CHAR WORD NUMB
    1819
    1920
     
    2122
    2223program :       /* empty */
    23         |       EXTERN extern_defs SC program
     24        |       EXTERNAL extern_defs SC program
    2425        |       func_def maybe_sc program
    2526        ;
     
    6465conditions
    6566        :       COMMA exp COL conditions2
    66         |       EQ exp
     67        |       EQL exp
    6768        ;
    6869
     
    9192        :       CHAR
    9293        |       WORD
    93         |       NUM
    94         |       REALNUM
     94        |       NUMB
    9595        ;
    9696
Note: See TracChangeset for help on using the changeset viewer.