Last change
on this file since 9787 was
9724,
checked in by gkronber, 12 years ago
|
#2026 changed ATG to Coco/R syntax and use Coco/R (C#) to generate scanner and parser for GPDL
|
File size:
693 bytes
|
Rev | Line | |
---|
[9724] | 1 | // GpdlCompiler.cs HDO, 2006-08-28
|
---|
[9528] | 2 | // -----
|
---|
| 3 | // Main program for compiler generated from GpdlCompiler.atg with Coco-2.
|
---|
| 4 | //=====================================|========================================
|
---|
| 5 |
|
---|
| 6 | using System;
|
---|
[9724] | 7 | using HeuristicLab.Problems.GPDL;
|
---|
[9528] | 8 |
|
---|
| 9 | public class GpdlCompiler {
|
---|
| 10 |
|
---|
| 11 | public static void Main(String[] args) {
|
---|
| 12 | //-----------------------------------|----------------------------------------
|
---|
[9724] | 13 | if (args.Length > 0) {
|
---|
| 14 | Scanner scanner = new Scanner(args[0]);
|
---|
| 15 | Parser parser = new Parser(scanner);
|
---|
| 16 | parser.Parse();
|
---|
| 17 | } else
|
---|
| 18 | Console.WriteLine("-- No source file specified");
|
---|
| 19 | }
|
---|
[9528] | 20 |
|
---|
[9724] | 21 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.