Skip to content

Sdf2.sdf3

pdmosses/sdf/org.metaborg.meta.lang.template/syntax/sdf2-core/Sdf2.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
module 

imports 
  aterms/Aterms
  sdf2-core/Sdf2-Syntax 
  constants/StrCon 
  constants/NatCon 
  priority/Priority 
  characterclass/Character 
  modules/Modules
  layout-constraints/Layout-Constraints

context-free start-symbols
    Module

lexical syntax
          Sort = "LAYOUT" {reject}

context-free syntax

     = <aliases> {reject}
     = <lexical> {reject}
     = <priorities> {reject}
     = <context-free> {reject}
     = <definition> {reject}
     = <syntax> {reject}
     = <variables> {reject}
     = <module> {reject}
     = <imports> {reject}
     = <exports> {reject}
     = <hiddens> {reject}
     = <left> {reject}
     = <right> {reject}
     = <assoc> {reject}
     = <non-assoc> {reject}
     = <non-nested> {reject}
     = <bracket> {reject}
     = <sorts> {reject}
     = <restrictions> {reject}

    //restrictions from SDF3
     = <language> {reject}
     = <project> {reject}
     = <retain> {reject}
     = <with>  {reject}
     = <unimports> {reject}
     = <overlays> {reject}
     = <rules> {reject}
     = <signature> {reject}
     = <strategies> {reject}
     = <attributes> {reject}
     = <template> {reject}
     = <templates> {reject}
     = <as> {reject}
     = <main> {reject}
     = <__default> {reject}
     = <__internal> {reject}

    Symbols = <<StrCon>(<arguments:{Symbol ","}*>)> {reject}

    Label = <<Associativity>> {reject}
    ATermAttribute = <<Associativity>> {reject}
    ATermAttribute = <reject> {reject}
    ATermAttribute = <prefer> {reject}
    ATermAttribute = <avoid> {reject}
    ATermAttribute = <bracket> {reject}
    ATermAttribute = <ignore-layout> {reject}
    ATermAttribute = <deprecated> {reject}
    ATermAttribute = <enforce-newline> {reject}
    ATermAttribute = <longest-match> {reject}
    ATermAttribute = <case-insensitive> {reject}
    ATermAttribute = <placeholder> {reject}
    ATermAttribute = <placeholder-insertion> {reject}
    ATermAttribute = <literal-completion> {reject}
    ATermAttribute = <layout(<Constraint>)> {reject}
    ATermAttribute = <layout(<ATerm>)> {reject}
    ATermAttribute = <deprecated(<StrCon>)> {reject}
    ATermAttribute.Constructor = <cons(<StrCon>)>{reject}
    ATermAttribute = <id(<ModuleName>)> {reject}
    ATermAttribute = <recover> {reject}

  restrictions
    Sort-CF
    "aliases"
    "lexical"
    "priorities"
    "context-free"
    "definition"
    "syntax"
    "variables"
    "module"
    "imports"
    "exports"
    "hiddens"
    "left"
    "right"
    "assoc"
    "non-assoc"
    "non-nested"
    "bracket"
    "sorts"             -/- [A-Za-z0-9\_]
    NatCon-CF        -/- [0-9]
    LAYOUT?-CF        -/- [\ \t\n\%]
    ModuleName-CF    -/- [A-Za-z0-9\_\-]