Class BuildCP

java.lang.Object
simula.compiler.syntaxClass.expression.BuildCP

public class BuildCP extends Object

Coding Utilities: Build Call Procedure (CP)

Link to GitHub: Source File.

Author:
Øystein Myhre Andersen
  • Constructor Details

    • BuildCP

      private BuildCP()
      Default Constructor: NOT USED
  • Method Details

    • normal

      static void normal(VariableExpression variable, ProcedureDeclaration prc, CodeBuilder codeBuilder)
      BuildCP.normal
      Parameters:
      variable - the procedure variable
      prc - Procedure Declaration
      codeBuilder - the CodeBuilder
    • remote

      static void remote(Expression obj, ProcedureDeclaration procedure, VariableExpression func, SyntaxClass backLink, CodeBuilder codeBuilder)
      BuildCP.remote
      Parameters:
      obj - Object Expression before DOT
      procedure - Procedure Declaration
      func - Function Designator, may be subscripted
      backLink - if not null, this procedure call is part of the backLink Expression/Statement.
      codeBuilder - the CodeBuilder
    • callRemoteStandardProcedure

      private static void callRemoteStandardProcedure(Expression beforeDot, StandardProcedure pro, VariableExpression variable, CodeBuilder codeBuilder)
      callRemoteStandardProcedure.
      Parameters:
      beforeDot - expression.
      pro - StandardProcedure.
      variable - the variable.
      codeBuilder - the codeBuilder to use.
    • normalStandardProcedure

      static void normalStandardProcedure(VariableExpression variable, CodeBuilder codeBuilder)
      ClassFile coding utility: BuildCP.normalStandardProcedure
      Parameters:
      variable - the variable.
      codeBuilder - the codeBuilder to use.
    • staticStandardProcedure

      static void staticStandardProcedure(VariableExpression variable, CodeBuilder codeBuilder)
      ClassFile coding utility: BuildCP.staticStandardProcedure
      Parameters:
      variable - the variable.
      codeBuilder - the codeBuilder to use.
    • checkForExtraParameter

      private static boolean checkForExtraParameter(VariableExpression variable)
      Check for Extra Parameter sourceLineNumber
      Parameters:
      variable - the variable
      Returns:
      true: if extra parameter 'sourceLineNumber' is pushed.