| 1: | /* Created by SharpDevelop. | |
| 2: | * User: Eduardo Rocha Monteiro ([email protected]) | |
| 3: | * Date: 1/12/2004 | |
| 4: | * Time: 23:20 | |
| 5: | */ | |
| 6: | ||
| 7: | using System; | |
| 8: | using System.Text.RegularExpressions; | |
| 9: | using Compilador.AnalisadorLexicoN.AutomatoN; | |
| 10: | using Compilador.AnalisadorLexicoN; | |
| 11: | using Compilador.AnalisadorSintaticoN; | |
| 12: | using Compilador.Util; | |
| 13: | ||
| 14: | ||
| 15: | namespace Compilador.Testadores | |
| 16: | { | |
| 17: | /// <summary> | |
| 18: | /// Description of Testador. | |
| 19: | /// </summary> | |
| 20: | public class Testador | |
| 21: | { | |
| 22: | public static void TestaAnalisadorLexico(string automatoTxt,string fprimTxt,string progFonte) | |
| 23: | { | |
| 24: | AnalisadorLexico Alx = new AnalisadorLexico(automatoTxt,fprimTxt,progFonte); | |
| 25: | ItemLexico il = new ItemLexico(); | |
| 26: | il = Alx.ProximoItemLexico(); | |
| 27: | while (il!=null) | |
| 28: | { | |
| 29: | Console.WriteLine(il._nome + " " + il._classe.ToString()); | |
| 30: | il = Alx.ProximoItemLexico(); | |
| 31: | } | |
| 32: | } | |
| 33: | public static void TestaAnalisadorSintatico(string automatoTxt,string fprimTxt,string grafoTxt,string progFonte) | |
| 34: | { | |
| 35: | AnalisadorSintatico Ast = new AnalisadorSintatico(automatoTxt,fprimTxt,grafoTxt,progFonte); | |
| 36: | Ast.Analisa(); | |
| 37: | } | |
| 38: | } | |
| 39: | } |
This page was automatically generated by SharpDevelop.