|
||||||||||
| 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.PkgReaderSyntax
org.millscript.millscript.syntax.PackageSyntax
public final class PackageSyntax
This class implements package syntax. This is used to declare
the current package name.
package <expr>
The package name expression is made up of names separated by periods. There is no restriction on the length of a package name. The name following the last period is referred to as the nickname for the package. It is the nickname that is used to refer to a specific pacakge within MillScript. The full name cannot be used as the period is used for function applications.
PackageExpr| Constructor Summary | |
|---|---|
PackageSyntax()
|
|
| Method Summary | |
|---|---|
PackageExpr |
prefix(java.lang.String sym,
Parser parser)
Parse the syntax for the specified symbol, using the specified Parser. |
| Methods inherited from class org.millscript.millscript.syntax.PkgReaderSyntax |
|---|
nickname, readPackageName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PackageSyntax()
| Method Detail |
|---|
public PackageExpr 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||