|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object scale.frontend.SourceLanguage scale.frontend.fortran.SourceFortran
public class SourceFortran
A class which defines source language characteristics for Fortran77.
$Id: SourceFortran.java,v 1.1 2006-12-05 21:02:10 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 Fortran programs.
Field Summary |
---|
Fields inherited from class scale.frontend.SourceLanguage |
---|
cColumnMajor, cGarbageCollected, cInsensitive, cRowMajor, cSensitive, cUserManaged |
Constructor Summary | |
---|---|
SourceFortran()
|
Method Summary | |
---|---|
int |
arrayIndexOrigin()
Fortran arrays start at index value 1. |
boolean |
arrayOrdering()
Fortran arrays are laid out in column major order. |
java.lang.String |
getLanguageId()
Return the LanguageId associated with this source language. |
boolean |
isFortran()
Return true if the source langauge is Fortran. |
boolean |
mainFunction()
Fortran does not define the Main function to be the routine "main". |
boolean |
nameMangle()
Fortran does not need to mangle names. |
ParameterMode |
parameterPassing(Type t)
By default, Fortran passes arrays by reference except for arrays which are passed by address pass by value. |
Methods inherited from class scale.frontend.SourceLanguage |
---|
classFieldOrderMatters, isCaseSensitive, 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 SourceFortran()
Method Detail |
---|
public boolean arrayOrdering()
arrayOrdering
in class SourceLanguage
public int arrayIndexOrigin()
arrayIndexOrigin
in class SourceLanguage
public ParameterMode parameterPassing(Type t)
parameterPassing
in class SourceLanguage
t
- the type of the actual parameter.
FormalDecl
public boolean nameMangle()
nameMangle
in class SourceLanguage
public boolean mainFunction()
mainFunction
in class SourceLanguage
public java.lang.String getLanguageId()
getLanguageId
in class SourceLanguage
public final boolean isFortran()
isFortran
in class SourceLanguage
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |