Changeset 322


Ignore:
Timestamp:
Nov 8, 2014, 6:05:30 AM (6 years ago)
Author:
Maxim Reznik
Message:

Add String_Literal node

Location:
trunk/ada-2012/src
Files:
4 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/ada-2012/src/ag/down.ag

    r318 r322  
    7070  simple_expression_range_dr,
    7171  simple_name,
     72  string_literal,
    7273  subtype_indication,
    7374  subtype_indication_or_access_definition,
  • trunk/ada-2012/src/ag/env_in.ag

    r318 r322  
    284284  single_task_declaration,
    285285  statement,
     286  string_literal,
    286287  subtype_declaration,
    287288  subtype_indication,
  • trunk/ada-2012/src/ag/errors.ag

    r318 r322  
    7373  simple_return_statement,
    7474  statement,
     75  string_literal,
    7576  subtype_indication,
    7677  subtype_indication_or_access_definition,
     
    158159      ${null_literal.Errors} := 0;  --  FIXME
    159160.)
     161Rules for string_literal.string_literal_token :
     162(.
     163      ${string_literal.Errors} := 0;  --  FIXME
     164.)
    160165Rules for numeric_literal.numeric_literal_token :
    161166(.
  • trunk/ada-2012/src/ag/syntax.ag

    r318 r322  
    16021602    numeric_literal |
    16031603    null_literal |
     1604    string_literal |
    16041605    record_aggregate |
    16051606    extension_aggregate |
     
    16641665  selective_accept |
    16651666  asynchronous_select;
     1667
     1668string_literal ::= token <string_literal_token>;
    16661669
    16671670subtype_declaration ::=
  • trunk/ada-2012/src/ag/up.ag

    r294 r322  
    4040  simple_expression,
    4141  simple_expression_range,
     42  string_literal,
    4243  subtype_indication,
    4344  subtype_indication_or_access_definition,
     
    179180.)
    180181
     182Rules for string_literal.string_literal_token :
     183(.
     184      --  LARL syntax has only operator_symbol
     185      ${string_literal.Up} := 0;
     186.)
     187
     188
    181189Rules for quantified_expression. :
    182190(.
  • trunk/ada-2012/src/comp/gela-plain_compilation_managers.adb

    r307 r322  
    99with Gela.LARL_Parsers;
    1010with Gela.Lexers;
    11 with Gela.Node_Factories;
     11with Gela.Fix_Node_Factories;
    1212with Gela.Pass_List;
    1313with Gela.Plain_Compilations;
     
    820820      Root    : Gela.Elements.Compilations.Compilation_Access;
    821821      Last    : Gela.Lexical_Types.Token_Index;
    822       Factory : constant Gela.Node_Factories.Element_Factory_Access :=
    823         new Gela.Node_Factories.Element_Factory (C);
     822      Factory : constant Gela.Fix_Node_Factories.Element_Factory_Access :=
     823        new Gela.Fix_Node_Factories.Element_Factory (C);
    824824   begin
    825825      Comp.Initialize
Note: See TracChangeset for help on using the changeset viewer.