Project

General

Profile

Actions

Feature #7981

open

Игнорировать код и returns в грамматике

Added by Denis Buzdalov about 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Start date:
02/15/2017
Due date:
% Done:

0%

Estimated time:
Published in build:

Description

То есть, поддерживать правила, описанные подобным образом:

property  returns [RValue result]
  :
    (id1=IDENT DOUBLECOLON)? id2=IDENT
    {
      String prop = ($id1 == null ? "" : $id1.getText() + "::") + $id2.getText();
      RValue res = ba.getProperty(prop, $id2);

        ba.notifyIfError(res == null, $id2, "Unknown Property " + prop);
    $result = res;
    }
;

Правило содержит returns-секцию и код в фигурных скобках.

No data to display

Actions

Also available in: Atom PDF