|
||||||||||
| 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.XMLCommentSyntax
public final class XMLCommentSyntax
This class implements XML comment syntax. An XML comment is not a valid MillScript comment, it is a valid datatype, whereas a MillScript comment would be discarded.
<-- (%p|.)* -->
The contents of an XML comment are treated like a special multi-line String in MillScript. This allows easier inclusion of JavaScript code within MillScript files. The XML comment are read in just the same way as a String, so all the same escape sequences are available. XML comments can also be formatted via the format function, hence be careful with "%p"s.
CommaExpr,
ConstantExpr,
XMLExpr| Constructor Summary | |
|---|---|
XMLCommentSyntax()
|
|
| Method Summary | |
|---|---|
Expr |
prefix(java.lang.String sym,
Parser parser)
Parse the syntax for the specified symbol, using the specified Parser. |
Expr |
readXMLComment(Parser parser)
Parses an XML comment. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLCommentSyntax()
| Method Detail |
|---|
public Expr readXMLComment(Parser parser)
parser - the Parser to parse XML from
ConstantExpr for the parsed syntax
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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||