Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

JJCParser.java

00001 package ca.mcgill.sable.laleh.java.astfix;
00002 
00003 /*
00004 File Name: JJCParser.java
00005 Reference Version: $JJCVersion: 1.aplha.1 $
00006 
00007 See the file JJCLicence for copyright information.
00008 See the file JJCHistory for change history information.
00009 */
00010 
00011 
00012 /******************************************************************
00013 *   This is a customized parser which overrides the necessary     *
00014 *   cases of Parser generated by SableCC. This parser constructs  *
00015 *   a new simplified version of the AST while parsing.            *
00016 *   The simplified grammer is introduced as ignored alternatives  *
00017 *   in input grammer file to SableCC.                             *
00018 ******************************************************************/
00019 
00020 // Modified by robby (robby@cis.ksu.edu)
00021 // - New package names of the parser, lexer, abstract syntax
00022 //   tree, and analysis
00023 // - Add assertions
00024 
00025 import edu.ksu.cis.bandera.jjjc.parser.*;
00026 import edu.ksu.cis.bandera.jjjc.lexer.*;
00027 import edu.ksu.cis.bandera.jjjc.node.*;
00028 import edu.ksu.cis.bandera.jjjc.analysis.*;
00029 import ca.mcgill.sable.util.*;
00030 
00031 import java.util.Vector;
00032 import java.util.Hashtable;
00033 import java.util.Enumeration;
00034 import java.util.BitSet;
00035 import java.io.IOException;
00036 
00037 
00038 public class JJCParser extends Parser
00039 {
00040     ASTFixer fixer = new ASTFixer();
00041    public JJCParser(Lexer lexer)
00042     {
00043     super(lexer);
00044     }
00045     protected void filter()
00046     {
00047     node = fixer.fix(node);
00048     }
00049 } // MyParser

Generated at Thu Feb 7 06:48:49 2002 for Bandera by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001