org.millscript.millscript.syntax
Interface PrefixSyntaxInterface
- All Known Implementing Classes:
- BothfixSyntax, ConditionalSyntax, DefineSyntax, ForSyntax, FunctionSyntax, FunSyntax, ImportSyntax, InitSyntax, ListSyntax, MemoSyntax, MethodOverrideSyntax, MethodSyntax, NoneSyntax, NotSyntax, PackageSyntax, ParenSyntax, PkgReaderSyntax, PragmaSyntax, PrefixSyntax, ProcedureSyntax, ReservedSyntax, SpiceClassInitSyntax, SpiceClassSyntax, SwitchSyntax, ThisSyntax, VarSyntax, WhileSyntax, XMLCommentSyntax, XMLElementSyntax
public interface PrefixSyntaxInterface
The PrefixSyntaxInterface interface should be implemented by any class which
provides a piece of prefix syntax. Prefix syntax is that which preceeds the
expression it operates on. An instance of this class may be responsible for
more than one symbol, e.g in the case of if and
unless, which have the same syntax.
|
Method Summary |
Expr |
prefix(java.lang.String sym,
Parser parser)
Parse the syntax for the specified symbol, using the specified
Parser. |
prefix
Expr prefix(java.lang.String sym,
Parser parser)
- Parse the syntax for the specified symbol, using the specified
Parser. 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.
- Parameters:
sym - the symbol to parse this syntax forparser - Parser to parse from, i.e. the source to parse from
- Returns:
- an expression for this syntax
Copyright © 2001-2007 Open World Ltd. All Rights Reserved.