Entrar Regístrate

Índice

Token
package compilador;public class Token{ public static final byte IDENTIFIER = 0, INT_LITERAL = 1, OPERATOR = 2,BEGIN = 3, CONST = 4, DO= 5, ELSE = 6, END = 7, IF = 8,IN = 9, LET = 10, THEN = 11,VAR = 12, WH[...]
enchufer.blogcindario.com - 27/Feb/2008, 16:26
Scanner
package compilador;//import compilador.Token;public class Scanner {private char[] sourceCode; //contiene el código fuente letra por letraprivate int currentPos; //posición actualprivate char currentChar; //l[...]
enchufer.blogcindario.com - 27/Feb/2008, 16:24
Parser
package compilador;//import java.util.Scanner;public class Parser{private Token currentToken = null; private Scanner scanner = null;public Parser (String theSourceCode){//Initializar el scannerthis.scanner[...]
enchufer.blogcindario.com - 27/Feb/2008, 16:23
Main
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package compilador;/** * * @author eNcHuFe */public class Main { /** * @param args the command line arguments[...]
enchufer.blogcindario.com - 27/Feb/2008, 16:21
4 artículos