org.millscript.millscript.syntax
Class AssignSyntax

java.lang.Object
  extended by org.millscript.millscript.syntax.Syntax
      extended by org.millscript.millscript.syntax.PostfixSyntax
          extended by org.millscript.millscript.syntax.SimplePostfixSyntax
              extended by org.millscript.millscript.syntax.AssignSyntax
All Implemented Interfaces:
PostfixSyntaxInterface

public final class AssignSyntax
extends SimplePostfixSyntax

This class implements := syntax.

<expr> := <expr>

The right hand side expression can be any expression that returns a single result, while the left hand side can be:

See Also:
AssignExpr

Constructor Summary
AssignSyntax()
           
 
Method Summary
 Expr simple(Expr lhs, Expr rhs)
          Returns the expression for this simple postfix syntax, which is made by combining the left and right hand side expressions.
 
Methods inherited from class org.millscript.millscript.syntax.SimplePostfixSyntax
postfix
 
Methods inherited from class org.millscript.millscript.syntax.PostfixSyntax
getPrecedence, setPrec
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssignSyntax

public AssignSyntax()
Method Detail

simple

public Expr simple(Expr lhs,
                   Expr rhs)
Description copied from class: SimplePostfixSyntax
Returns the expression for this simple postfix syntax, which is made by combining the left and right hand side expressions.

Parameters:
lhs - the expression on the left hand side of this syntax
rhs - the expression on the right hand side of this syntax
Returns:
the expression for this syntax
See Also:
SimplePostfixSyntax.simple(org.millscript.millscript.expr.Expr, org.millscript.millscript.expr.Expr)


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