| java.lang.Object org.griphyn.vdl.parser.VDLtParser
VDLtParser | public class VDLtParser (Code) | | Parses the input stream and generates pool configuration map as
output.
author: Jens-S. Vöckler author: Yong Zhao version: $Revision: 50 $ See Also: VDLtScanner See Also: VDLtToken |
Method Summary | |
protected Pass | aarg() internal function to parse actual arguments employed by a DV. | protected Argument | argument() internal function to parse a argument line. | protected Call | call() internal function to parse a call inside a compound TR. | protected Pass | carg() internal function to parse a call inside a compound TR. | protected Derivation | derivation() internal function to parse a complete transformation. | protected Scalar | dv_leaf() | protected Declare | farg() internal function to parse formal arguments employed by a TR. | protected VDLtFQDN | fqdn() internal function to parse the fully-qualified definition identifier
into memory. | public boolean | hasMoreTokens() Predicate to determine, if there are more Definition instances
to be read. | protected LFN | lfn() | public Definitions | parse() Parses the complete input stream. | public Definition | parseDefinition() Parses the a single definition from the input stream and
returns just the definition. | protected Profile | profile() internal function to parse a profile inside a TR body. | protected Local | targ() internal function to parse temporary variables employed n a TR. | protected Text | text() | protected Leaf | tr_leaf() | protected Transformation | transformation() internal function to parse a complete transformation. | protected VDLtFQDN | trmap() internal function to parse the part after the arrow operator into
memory. | protected Use | use() |
hasMoreTokens | public boolean hasMoreTokens() throws IOException, VDLtException(Code) | | Predicate to determine, if there are more Definition instances
to be read.
true, if there are potentially more tokens in the stream. exception: IOException - if the reading from the stream fails, exception: VDLtParserException - if the parser detects a syntax error, exception: VDLtScannerException - if the scanner detects a lexical error. |
trmap | protected VDLtFQDN trmap() throws IOException, VDLtException(Code) | | internal function to parse the part after the arrow operator into
memory. It is also used for calls in compound transformations.
On popular demand, the syntax slightly changed to be more permissive
with version maps. The following short-cuts are permitted:
a parsed mapping to a transformation. exception: IOException - if the reading from the stream fails, exception: VDLtParserException - if the parser detects a syntax error, exception: VDLtScannerException - if the scanner detects a lexical error. |
|
|