|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.millscript.millscript.syntax.Syntax
org.millscript.millscript.syntax.PrefixSyntax
org.millscript.millscript.syntax.ProcedureSyntax
public abstract class ProcedureSyntax
This class is a convenience for implementing procedure synyax elements. e.g. functions, fun's, methods and memoes.
| Constructor Summary | |
|---|---|
protected |
ProcedureSyntax(java.lang.String closing,
boolean nameNeeded)
Creates a proceedure syntax parser instance, with the specified closing character sequence. |
| Method Summary | |
|---|---|
Expr |
prefix(java.lang.String sym,
Parser parser)
Parse the syntax for the specified symbol, using the specified Parser. |
abstract Expr |
procedure(FunctionHeader header,
Expr body,
Parser parser)
Returns the expression for this type of proceedure syntax. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ProcedureSyntax(java.lang.String closing,
boolean nameNeeded)
closing - the closing character seqeunce for this procedure
syntax parser instancenameNeeded - a boolean indicating if this function must have a
name or not.| Method Detail |
|---|
public Expr prefix(java.lang.String sym,
Parser parser)
PrefixSyntaxInterfaceParser. The symbol is specified because different symbols
may share the same syntax, but result in slightly different expressions.
The Parser is supplied as the source to parse from.
prefix in interface PrefixSyntaxInterfaceprefix in class PrefixSyntaxsym - the symbol to parse this syntax forparser - Parser to parse from, i.e. the source to parse from
PrefixSyntaxInterface.prefix(java.lang.String, org.millscript.millscript.syntax.Parser)
public abstract Expr procedure(FunctionHeader header,
Expr body,
Parser parser)
header - the procedure headerbody - the procedure bodyparser - the current parser
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||