Changeset 2922


Ignore:
Timestamp:
Mar 10, 2013, 12:48:38 AM (5 years ago)
Author:
ksherdy
Message:

Renamed fluffy SyntaxAnalyzer? to non-fluffy parser.

Location:
proto/pabloj/trunk/src/compiler/parser
Files:
1 copied
2 moved

Legend:

Unmodified
Added
Removed
  • proto/pabloj/trunk/src/compiler/parser/Parser.java

    r2914 r2922  
    1 //
    2 // This code is modified scatter parser-generator code.
    3 // See applications.SampleApplication.java.
    4 //
     1/*
     2 * PabloS parser wrapper.
     3 *
     4 * @author Ken Herdy <ksherdy at sfu dot ca>
     5 */
    56
    6 package  compiler.syntacticAnalysis;
     7package  compiler.parser;
    78
    8 import pabloS.parser.*;
    99import pabloS.ast.ASTNode;
    1010import pabloS.lexicalAnalyzer.LexicalController;
    1111import pabloS.logging.ScatterLogger;
    12 import compiler.syntacticAnalysis.SyntacticAnalyzer;
     12import compiler.parser.Parser;
    1313
    14 public class SyntacticAnalyzer {
     14public class Parser {
    1515       
    16         static public ASTNode parse(String inputFile) throws SyntacticAnalysisFailedException {                         
     16        static public ASTNode parse(String inputFile) throws ParserException {                 
    1717
    1818                LexicalController lexController = LexicalController.make(inputFile);
    19                 ASTNode ASTTree = Parser.parse(lexController);
     19                ASTNode ASTTree = pabloS.parser.Parser.parse(lexController);
    2020       
    2121                if(thereAreErrors()) {
    22                         throw new SyntacticAnalysisFailedException();
     22                        throw new ParserException();
    2323                }
    2424               
  • proto/pabloj/trunk/src/compiler/parser/ParserException.java

    r2914 r2922  
    1 package compiler.syntacticAnalysis;
     1package compiler.parser;
    22
    3 public class SyntacticAnalysisFailedException extends Exception {
     3public class ParserException extends Exception {
    44
    55        /**
Note: See TracChangeset for help on using the changeset viewer.