org.millscript.millscript.syntax
Class FunSyntax

java.lang.Object
  extended by org.millscript.millscript.syntax.Syntax
      extended by org.millscript.millscript.syntax.PrefixSyntax
          extended by org.millscript.millscript.syntax.ProcedureSyntax
              extended by org.millscript.millscript.syntax.FunSyntax
All Implemented Interfaces:
PrefixSyntaxInterface

public final class FunSyntax
extends ProcedureSyntax

This class implements fun syntax. This syntax creates a function object, but does not bind it to a variable.

See Also:
LambdaExpr

Method Summary
 LambdaExpr procedure(FunctionHeader header, Expr body, Parser parser)
          Returns the expression for this type of proceedure syntax.
 
Methods inherited from class org.millscript.millscript.syntax.ProcedureSyntax
prefix
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

procedure

public LambdaExpr procedure(FunctionHeader header,
                            Expr body,
                            Parser parser)
Description copied from class: ProcedureSyntax
Returns the expression for this type of proceedure syntax.

Specified by:
procedure in class ProcedureSyntax
Parameters:
header - the procedure header
body - the procedure body
parser - the current parser
Returns:
an Expr for this procedure
See Also:
ProcedureSyntax.procedure(org.millscript.millscript.syntax.FunctionHeader, org.millscript.millscript.expr.Expr, org.millscript.millscript.syntax.Parser)


Copyright © 2001-2007 Open World Ltd. All Rights Reserved.