Changes between Initial Version and Version 2 of Ticket #5949


Ignore:
Timestamp:
2020-05-11T22:13:22Z (5 years ago)
Author:
Adrian Pop
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5949 – Description

    initial v2  
    11Basically it does {{{diffModelicaFileListings}}} on a file with a *HUGE* diagram annotation.
    22
    3 This consumes stack until the end bracket, it should not if possible:
     3This needs to be rewritten somehow so that it doesn't blow up the stack:
    44{{{#!mo
    5   elseif id==TokenId.LBRACK then
    6     (tokens, tree) := consume(tokens, tree);
    7     (tokens, tree) := expression_list(tokens, tree);
    8     while true loop
    9       (tokens, tree, b) := scanOpt(tokens, tree, TokenId.SEMICOLON);
    10       if not b then
    11         break;
    12       end if;
    13       (tokens, tree) := expression_list(tokens, tree);
    14     end while;
    15     (tokens, tree) := scan(tokens, tree, TokenId.RBRACK);
     5  elseif id==TokenId.LBRACE then
     6    (tokens, tree) := scan(tokens, tree, TokenId.LBRACE);
     7    (tokens, tree, b) := LA1(tokens, tree, {TokenId.RBRACE}); // Easier than checking First(expression), etc
     8    if not b then
     9      (tokens, tree) := function_arguments(tokens, tree);
     10    end if;
     11    (tokens, tree) := scan(tokens, tree, TokenId.RBRACE);
    1612}}}
    1713