Changeset 13620


Ignore:
Timestamp:
Sep 30, 2019 5:30:53 PM (2 months ago)
Author:
mjohnsson
Message:

#5847 Further correction of the grammer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev-mj-5847/Compiler/ModelicaFrontEnd/src/parser/Modelica.parser

    r13615 r13620  
    2424%goal subscript;
    2525%typeof function_call_list = "SrcFunctionCallList";
     26%typeof function_call_vector = "List";
    2627%goal function_call_list;
    2728
     
    15211522List function_calls =
    15221523    function_call SEMICOLON                       {: return new List().add(function_call); :}
    1523   | function_calls function_call SEMICOLON {: return function_calls.add(function_call); :}
     1524  | function_calls function_call SEMICOLON        {: return function_calls.add(function_call); :}
     1525  ;
     1526
     1527List function_call_vector =
     1528    function_call                                 {: return new List().add(function_call); :}
     1529  | function_call_vector COMMA function_call      {: return function_call_vector.add(function_call); :}
    15241530  ;
    15251531
    15261532SrcFunctionCallList function_call_list
    1527     = LBRACE function_calls RBRACE
    1528     {:
    1529         return new SrcFunctionCallList(function_calls);
     1533    = LBRACE function_call_vector RBRACE
     1534    {:
     1535        return new SrcFunctionCallList(function_call_vector);
    15301536    :}
    15311537    | function_calls
Note: See TracChangeset for help on using the changeset viewer.