Module Simula

Class ProcedureSpecification

java.lang.Object
simula.compiler.syntaxClass.declaration.ProcedureSpecification
All Implemented Interfaces:
Externalizable, Serializable

public final class ProcedureSpecification extends Object implements Externalizable
Procedure Specification.
 Simula Standard: 5.5.3 Virtual quantities
 Simula Standard: 6.3 External procedure declaration
 
 procedure-specification
     = [ type ] PROCEDURE procedure-identifier procedure-head empty-body
     
    procedure-head
        = [ formal-parameter-part ; [ mode-part ] specification-part  ] ;
         
    empty-body = dummy-statement
 
    procedure-identifier = identifier
 
       formal-parameter-part = "(" formal-parameter { , formal-parameter } ")"
       
          formal-parameter = identifier
          
       specification-part = specifier identifier-list ; { specifier identifier-list ; }
       
          specifier
             = type [ array | procedure ]
             | label
             | switch
             
       mode-part 
          = name-part [ value-part ]
          | value-part [ name-part ]
          
          name-part = name identifier-list ;
          value-part = value identifier-list ;
          
             identifier-list = identifier { , identifier }
 
Link to GitHub: Source File.
Author:
SIMULA Standards Group, Øystein Myhre Andersen
See Also:
  • Field Details

    • identifier

      private String identifier
      The procedure identifier.
    • type

      public Type type
      The procedure's type.
    • parameterList

      public Vector<Parameter> parameterList
      The parameter list.
  • Constructor Details

    • ProcedureSpecification

      private ProcedureSpecification(String identifier, Type type, Vector<Parameter> pList)
      Create a new ProcedureSpecification
      Parameters:
      identifier - procedure-identifier
      type - procedure's type or null
      pList - the parameter lList
    • ProcedureSpecification

      public ProcedureSpecification()
      Default constructor used by Externalization.
  • Method Details