Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Directive in EBNF isn't really correct (at least for abstract) #4

@CWBudde

Description

@CWBudde

There are a few rules what we can combine. Obviously, we cannot write:

procedure Test; abstract;
begin
end;

we can only have something like this:

type
  TMyClass = class
  public
    procedure Test; virtual; abstract;
  end;

So an abstract can only appear after a virtual and the virtual (and override) can only appear for methods. Same for "reintroduce", "overload" and more. There are rather complex rules which are not modelled by this representation. For a syntax highlighter this might not be a problem, but it might, if someone wants to use it for more.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions