Last change
on this file since 9533 was
9430,
checked in by gkronber, 12 years ago
|
initial import of GPDL parser plugin
|
File size:
1.8 KB
|
Line | |
---|
1 | // ==>ModuleName.cs HDO, 2006-08-28
|
---|
2 | // -------------
|
---|
3 | // Semantic evaluator for table-driven top-down parsing.
|
---|
4 | // Generated by Coco-2 (PGT).
|
---|
5 | //=====================================|========================================
|
---|
6 |
|
---|
7 | using System;
|
---|
8 | using System.Text;
|
---|
9 | using System.Collections;
|
---|
10 | using System.Collections.Generic;
|
---|
11 |
|
---|
12 | using Lex = ==>LexName;
|
---|
13 | using Syn = ==>SynName;
|
---|
14 |
|
---|
15 | public class ==>ModuleName {
|
---|
16 |
|
---|
17 |
|
---|
18 | public const String MODULENAME = "==>ModuleName";
|
---|
19 |
|
---|
20 | public static void ==>ModuleNameMethod(Utils.ModuleAction action, out String moduleName) {
|
---|
21 | //-----------------------------------|----------------------------------------
|
---|
22 | moduleName = MODULENAME;
|
---|
23 | switch (action) {
|
---|
24 | case Utils.ModuleAction.getModuleName:
|
---|
25 | return;
|
---|
26 | case Utils.ModuleAction.initModule:
|
---|
27 | break;
|
---|
28 | case Utils.ModuleAction.resetModule:
|
---|
29 | break;
|
---|
30 | case Utils.ModuleAction.cleanupModule:
|
---|
31 | return;
|
---|
32 | } // switch
|
---|
33 | } // ==>ModuleNameMethod
|
---|
34 |
|
---|
35 |
|
---|
36 | // *** start of global SYN and SEM declarations from ATG ***
|
---|
37 |
|
---|
38 | ==>GlobalDeclarations
|
---|
39 | // *** end of global SYN and SEM declarations from ATG ***
|
---|
40 |
|
---|
41 | ==>SemanticMethods
|
---|
42 |
|
---|
43 | public delegate void PragmaMethod();
|
---|
44 | public static PragmaMethod[] pragmaMethods = {
|
---|
45 | ==>PragmaMethodsInit
|
---|
46 | };
|
---|
47 |
|
---|
48 |
|
---|
49 | public static void StartSem() {
|
---|
50 | //-----------------------------------|----------------------------------------
|
---|
51 | for (;;) {
|
---|
52 | switch (Syn.Interpret()) {
|
---|
53 | case 0:
|
---|
54 | return;
|
---|
55 | case 1:
|
---|
56 | ==>GrammarRootName();
|
---|
57 | break;
|
---|
58 | } // switch
|
---|
59 | } // for
|
---|
60 | } // StartSem
|
---|
61 |
|
---|
62 |
|
---|
63 | } // ==>ModuleName
|
---|
64 |
|
---|
65 | // End of ==>ModuleName.cs
|
---|
66 | //=====================================|========================================
|
---|
Note: See
TracBrowser
for help on using the repository browser.