Skip to content

Modules.sdf3

pdmosses/nabl/org.metaborg.meta.lang.nabl/syntax/core/Modules.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
module 

context-free syntax

  Module.Module = <module <ModuleID> 

    <ModuleSection*>> 

  ModuleSection.Imports = <
    imports <ImportModule*>> 

  ImportModule.ImportWildcard = <<ModuleID>/-> 
  ImportModule.Import = <<ModuleID>> 

lexical syntax

   = {ModuleIDPart "/"}+ 
  ModuleIDPart = [a-zA-Z\.\_] [a-zA-Z0-9\'\.\-\_]* 
   = SectionKeyword {reject}

  SectionKeyword = "imports" 

lexical restrictions

  ModuleID -/- [a-zA-Z0-9\'\.\-\_]