|
1
|
|
|
# Generated from sdoc/antlr/sdoc2Parser.g4 by ANTLR 4.5.1 |
|
2
|
|
|
from antlr4 import * |
|
3
|
|
|
if __name__ is not None and "." in __name__: |
|
4
|
|
|
from .sdoc2Parser import sdoc2Parser |
|
5
|
|
|
else: |
|
6
|
|
|
from sdoc2Parser import sdoc2Parser |
|
7
|
|
|
|
|
8
|
|
|
# This class defines a complete generic visitor for a parse tree produced by sdoc2Parser. |
|
9
|
|
|
|
|
10
|
|
|
class sdoc2ParserVisitor(ParseTreeVisitor): |
|
11
|
|
|
|
|
12
|
|
|
# Visit a parse tree produced by sdoc2Parser#sdoc. |
|
13
|
|
|
def visitSdoc(self, ctx:sdoc2Parser.SdocContext): |
|
14
|
|
|
return self.visitChildren(ctx) |
|
15
|
|
|
|
|
16
|
|
|
|
|
17
|
|
|
# Visit a parse tree produced by sdoc2Parser#text. |
|
18
|
|
|
def visitText(self, ctx:sdoc2Parser.TextContext): |
|
19
|
|
|
return self.visitChildren(ctx) |
|
20
|
|
|
|
|
21
|
|
|
|
|
22
|
|
|
# Visit a parse tree produced by sdoc2Parser#command. |
|
23
|
|
|
def visitCommand(self, ctx:sdoc2Parser.CommandContext): |
|
24
|
|
|
return self.visitChildren(ctx) |
|
25
|
|
|
|
|
26
|
|
|
|
|
27
|
|
|
# Visit a parse tree produced by sdoc2Parser#cmd_begin. |
|
28
|
|
|
def visitCmd_begin(self, ctx:sdoc2Parser.Cmd_beginContext): |
|
29
|
|
|
return self.visitChildren(ctx) |
|
30
|
|
|
|
|
31
|
|
|
|
|
32
|
|
|
# Visit a parse tree produced by sdoc2Parser#cmd_end. |
|
33
|
|
|
def visitCmd_end(self, ctx:sdoc2Parser.Cmd_endContext): |
|
34
|
|
|
return self.visitChildren(ctx) |
|
35
|
|
|
|
|
36
|
|
|
|
|
37
|
|
|
# Visit a parse tree produced by sdoc2Parser#cmd_position. |
|
38
|
|
|
def visitCmd_position(self, ctx:sdoc2Parser.Cmd_positionContext): |
|
39
|
|
|
return self.visitChildren(ctx) |
|
40
|
|
|
|
|
41
|
|
|
|
|
42
|
|
|
# Visit a parse tree produced by sdoc2Parser#cmd_sdoc2. |
|
43
|
|
|
def visitCmd_sdoc2(self, ctx:sdoc2Parser.Cmd_sdoc2Context): |
|
44
|
|
|
return self.visitChildren(ctx) |
|
45
|
|
|
|
|
46
|
|
|
|
|
47
|
|
|
|
|
48
|
|
|
del sdoc2Parser |