|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectscale.frontend.SourceLanguage
scale.frontend.c.SourceC
public class SourceC
A class which defines source language characteristics for C.
$Id: SourceC.java,v 1.1 2006-12-05 21:02:08 burrill Exp $
Copyright 2006 by the Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.
The compiler uses these methods to generate valid code for C programs.
| Field Summary |
|---|
| Fields inherited from class scale.frontend.SourceLanguage |
|---|
cColumnMajor, cGarbageCollected, cInsensitive, cRowMajor, cSensitive, cUserManaged |
| Constructor Summary | |
|---|---|
SourceC()
|
|
| Method Summary | |
|---|---|
int |
arrayIndexOrigin()
C arrays start at index 0. |
boolean |
arrayOrdering()
C arrays are laid out in row major order. |
java.lang.String |
getLanguageId()
Return the string associated with this source language. |
boolean |
mainFunction()
C defines the Main function to be the routine "main". |
boolean |
nameMangle()
C does not mangle names. |
ParameterMode |
parameterPassing(Type t)
C parameters are passed by value. |
| Methods inherited from class scale.frontend.SourceLanguage |
|---|
classFieldOrderMatters, isCaseSensitive, isFortran, isMemUserManaged, mathodOrderMatters, recordFieldOrdermatters, setClassFieldOrderRule, setIdentifierCase, setMemoryManagement, setMethodsRule, setRecordFieldOrderRule |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SourceC()
| Method Detail |
|---|
public boolean arrayOrdering()
arrayOrdering in class SourceLanguagepublic int arrayIndexOrigin()
arrayIndexOrigin in class SourceLanguagepublic ParameterMode parameterPassing(Type t)
parameterPassing in class SourceLanguaget - the parameter's type is ignored.
FormalDeclpublic boolean nameMangle()
nameMangle in class SourceLanguagepublic boolean mainFunction()
mainFunction in class SourceLanguagepublic java.lang.String getLanguageId()
SourceLanguage
getLanguageId in class SourceLanguage
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||