Changeset 3798 for applications


Ignore:
Timestamp:
Jun 2, 2008, 3:23:39 PM (12 years ago)
Author:
orlov
Message:
  • Some small fixes to the grammar.
Location:
applications/trunk/LFC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/trunk/LFC/lfc.ag

    r3788 r3798  
    33
    44  (arg_list | arg_list_rest | concept_list_rest | equation_rest | exp_concat |
    5   exp_concat_or_where | exp_var_or_func | pat_concat | pattern_list_rest | varassign_rest |
    6   variable_dec_rest | variable_list_rest)
     5  exp_concat_or_where | exp_var_or_func | pat_concat | pattern_list_rest | program_rest |
     6  varassign_rest | variable_dec_rest | variable_list_rest)
    77
    88
     
    1010
    1111program ->
     12  (DEC)
     13program_rest ->
    1214  (DEC)
    1315function_dec ->
     
    7173The followers of nullable nonterminals:
    7274
     75program_rest ->
     76  ($END)
    7377variable_dec_rest ->
    7478  (DEF)
     
    7680  (COLON)
    7781equation_rest ->
    78   ($END)
     82  ($END | DEC)
    7983pat_concat ->
    8084  (COMMA | RPAR)
     
    102106program
    103107: (DEC)
    104      function_dec var_dec_and_func_def
     108     function_dec var_dec_and_func_def #program_rest
     109;
     110
     111#program_rest
     112: ($END)
     113     /* empty */
     114| (DEC)
     115     program
    105116;
    106117
    107118function_dec
    108119: (DEC)
    109      DEC funname COLON function_type
     120     DEC funname COLON function_type SC
    110121;
    111122
     
    157168
    158169#equation_rest
    159 : ($END)
     170: ($END | DEC)
    160171     /* empty */
    161172| (IDENTIFIER)
  • applications/trunk/LFC/lfc.grammar

    r3788 r3798  
    1515%%
    1616
    17 program : function_dec var_dec_and_func_def ;
     17program : function_dec var_dec_and_func_def program_rest ;
    1818
    19 function_dec : DEC funname COLON function_type ;
     19program_rest : /*empty*/
     20             | program
     21             ;
     22
     23function_dec : DEC funname COLON function_type SC ;
    2024
    2125var_dec_and_func_def : variable_dec definition
Note: See TracChangeset for help on using the changeset viewer.