Skip to content

WebDSL-Exception.sdf3

pdmosses/webdsl-statix/webdslstatix/syntax/WebDSL-Exception.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
module WebDSL-Exception

imports
  WebDSL-Action
  WebDSL-Core
  WebDSL-Lexical
  WebDSL-UI

context-free sorts

  

context-free syntax

  Statement.ThrowStatement = <
    throw <{Exp ","}+> ;
  >
  TemplateCall.ThrowTemplate = <
    throw <{Exp ","}+>
  >

  Statement.TryStatement = <
    try <Block> <Catch+>
  >
  TemplateCall.TryTemplate = <
    try <Block> <Catch+>
  >

  .Catch = <catch ( <VarId> : <Sort> ) <Block>>

lexical syntax

  TemplateId = "try" {reject}
  TemplateId = "throw" {reject}