| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectscale.frontend.Parser
scale.frontend.c.C99
public class C99
This is the parser for the C99 version of C.
$Id: C99.java,v 1.24 2007-09-20 18:49:43 burrill Exp $
 Copyright 2007 by the Scale Compiler Group,
 Department of Computer Science
 University of Massachusetts,
 Amherst MA. 01003, USA
 All Rights Reserved.
 
| Field Summary | |
|---|---|
| static int | ANSICStrict ANSI C mode. | 
| static int | C99C99 mode. | 
| static int | GCCGCC mode. | 
| static int | LINENUMSGenerate line numbers. | 
| Fields inherited from class scale.frontend.Parser | 
|---|
| extension, top | 
| Constructor Summary | |
|---|---|
| C99(Scale top,
    java.lang.String extension) | |
| Method Summary | |
|---|---|
|  SourceLanguage | getSourceLanguage()Return the correct source langauge instance for this parser. | 
|  CallGraph | parse(java.lang.String name,
      Suite suite,
      Vector<java.lang.String> macroText)Parse the specified C file. | 
| static void | runPreprocessor(java.io.PrintStream out,
                java.lang.String filename,
                Scale top)Run just the C preprocessor. | 
| Methods inherited from class scale.frontend.Parser | 
|---|
| getParser | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final int GCC
public static final int C99
public static final int ANSIC
public static final int LINENUMS
| Constructor Detail | 
|---|
public C99(Scale top,
           java.lang.String extension)
top - is the top level of the compilerextension - is the file extension of the file to be parsed| Method Detail | 
|---|
public CallGraph parse(java.lang.String name,
                       Suite suite,
                       Vector<java.lang.String> macroText)
macroText is not
 null, the set of defined macros is added to it.
parse in class Parsername - the name of the Clef AST (i.e., the file name)suite - is the collection of call graphsmacroText - is null or is used to collect macro
 definitions as text strings
public static void runPreprocessor(java.io.PrintStream out,
                                   java.lang.String filename,
                                   Scale top)
                            throws java.io.IOException
java.io.IOExceptionpublic SourceLanguage getSourceLanguage()
getSourceLanguage in class Parser| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||