Codigo Analisis Semantico

Páginas: 3 (619 palabras) Publicado: 15 de abril de 2012
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;using System.Collections;
using System.IO;
using PLG_Compiler;
namespace PLG_Editor
{
public partial class frmPrincipal : Form
{
// palabras reservadas declaradas a nivel deformulario
string[] palabrasReservadas = { "if", "else", "elseif", "using", "int", "double", "While", "Do", "for", "go to", "auto", "cath", "try", "class", "new", "operator", "register","struct", "template", "typedef", "unsigned", "signed", "case", "namespace", "public", "return", "switch", "this", "try", "volatile", "break", "char", "default", "delete", "enum", "for","inline", "int", "private", "static", "Sizeof", "throw", "union", "void", "friend", "new", "operator" };

public frmPrincipal()
{
InitializeComponent();
}private bool textoGuardado = true;
private string NombreArchivo = "";
private string FullNombreArchivo = "";
ArrayList stbFullText = new ArrayList();ArrayList stbResultado = new ArrayList();

private void mnuOptAbrir_Click(object sender, EventArgs e)
{
StreamReader mystreamreader = null;
try{

if (dlgAbrir.ShowDialog() == DialogResult.OK)
{
rtEditor.Enabled = true;
textoGuardado = true;mystreamreader = File.OpenText(dlgAbrir.FileName);
rtEditor.Text = mystreamreader.ReadToEnd();
mnuOptAnalizar.Enabled = true;mnuOptCerrar.Enabled = true;
NombreArchivo = dlgAbrir.FileName;
FullNombreArchivo = dlgAbrir.FileName;
NombreArchivo =...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Analisis semantico
  • Analisis semantico
  • Análisis semántico
  • Analisis semantico
  • Analisis semantico
  • Analisis semantico
  • ANÁLISIS SEMÁNTICO
  • Analisis Semantico

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS