Skip to content

WebDSL-Generated.sdf3

pdmosses/webdsl-statix/webdslstatix/syntax/WebDSL-Generated.sdf3

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
module WebDSL-Generated

imports
  WebDSL-Core
  WebDSL-Lexical

/*
  Add sort and constructors for elements that can be generated durig the desugaring phase.
  This is a workaround for the lack of string manipulation in Statix at the time of writing.

  The GeneratedElement is never supposed to be the result of parsing.
*/

context-free sorts

  

context-free syntax

  . = <<Id*>>

  Definition.GeneratedDefinition = <<GeneratedElement>>
  EntityBodyDeclaration.GeneratedEntityBodyDeclaration = <<GeneratedElement>>

context-free priorities

  Definition.GeneratedDefinition <0> .> GeneratedElement.Generated,
  EntityBodyDeclaration.GeneratedEntityBodyDeclaration <0> .> GeneratedElement.Generated