Skip to content

Test.sdf3

pdmosses/java-front/lang.java/syntax/java/Test.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
module java/Test

// The Java Language Specification
// Java SE 8 Edition

imports
  java/Main
  java/lexical/Comments
  java/lexical/Identifiers
  java/lexical/LineTerminators
  java/packages/CompilationUnits

context-free sorts

  Expectation 

context-free syntax

  CompilationUnit.Test = <
    test;
    <{TestUnit "\n"}*>
  >

  .TestPkg = <
    [<ID>] {
      <{TestUnit "\n"}*>
    }
  >

  .TestFile = <
    [<ID>]
    <CompilationUnit>
  >