|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.griphyn.vdl.parser.VDLtParser
public class VDLtParser
Parses the input stream and generates pool configuration map as output.
VDLtScanner,
VDLtToken| Field Summary | |
|---|---|
private VDLtToken |
m_lookAhead
Stores the look-ahead symbol. |
private VDLtScanner |
m_scanner
The access to the lexical scanner is stored here. |
| Constructor Summary | |
|---|---|
VDLtParser(Reader r)
Initializes the parser with an input stream to read from. |
|
| 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. |
boolean |
hasMoreTokens()
Predicate to determine, if there are more Definition instances to be read. |
protected LFN |
lfn()
|
Definitions |
parse()
Parses the complete input stream. |
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private VDLtScanner m_scanner
private VDLtToken m_lookAhead
| Constructor Detail |
|---|
public VDLtParser(Reader r)
throws IOException,
VDLtException
r - is the stream opened for reading.
IOException
VDLtException| Method Detail |
|---|
protected LFN lfn()
throws IOException,
VDLtException
IOException
VDLtException
protected Use use()
throws IOException,
VDLtException
IOException
VDLtException
protected Text text()
throws IOException,
VDLtException
IOException
VDLtException
protected Leaf tr_leaf()
throws IOException,
VDLtException
IOException
VDLtException
protected Scalar dv_leaf()
throws IOException,
VDLtException
IOException
VDLtException
protected Profile profile()
throws IOException,
VDLtException
IOException - if the reading from the stream fails,
VDLtParserException - if the parser detects a syntax error,
VDLtScannerException - if the scanner detects a lexical error.
VDLtException
protected Argument argument()
throws IOException,
VDLtException
argument line.
IOException - if the reading from the stream fails,
VDLtParserException - if the parser detects a syntax error,
VDLtScannerException - if the scanner detects a lexical error.
VDLtException
protected Pass carg()
throws IOException,
VDLtException
call statement.
IOException - if the reading from the stream fails,
VDLtParserException - if the parser detects a syntax error,
VDLtScannerException - if the scanner detects a lexical error.
VDLtException
protected Call call()
throws IOException,
VDLtException
IOException - if the reading from the stream fails,
VDLtParserException - if the parser detects a syntax error,
VDLtScannerException - if the scanner detects a lexical error.
VDLtException
protected Declare farg()
throws IOException,
VDLtException
IOException - if the reading from the stream fails,
VDLtParserException - if the parser detects a syntax error,
VDLtScannerException - if the scanner detects a lexical error.
VDLtException
protected Local targ()
throws IOException,
VDLtException
IOException - if the reading from the stream fails,
VDLtParserException - if the parser detects a syntax error,
VDLtScannerException - if the scanner detects a lexical error.
VDLtException
protected Pass aarg()
throws IOException,
VDLtException
IOException - if the reading from the stream fails,
VDLtParserException - if the parser detects a syntax error,
VDLtScannerException - if the scanner detects a lexical error.
VDLtException
protected VDLtFQDN fqdn()
throws IOException,
VDLtException
IOException - if the reading from the stream fails,
VDLtParserException - if the parser detects a syntax error,
VDLtScannerException - if the scanner detects a lexical error.
VDLtException
protected VDLtFQDN trmap()
throws IOException,
VDLtException
On popular demand, the syntax slightly changed to be more permissive with version maps. The following short-cuts are permitted:
IOException - if the reading from the stream fails,
VDLtParserException - if the parser detects a syntax error,
VDLtScannerException - if the scanner detects a lexical error.
VDLtException
protected Derivation derivation()
throws IOException,
VDLtException
IOException - if the reading from the stream fails,
VDLtParserException - if the parser detects a syntax error,
VDLtScannerException - if the scanner detects a lexical error.
VDLtException
protected Transformation transformation()
throws IOException,
VDLtException
IOException - if the reading from the stream fails,
VDLtParserException - if the parser detects a syntax error,
VDLtScannerException - if the scanner detects a lexical error.
VDLtException
public Definition parseDefinition()
throws IOException,
VDLtException
IOException - if the reading from the stream fails,
VDLtParserException - if the parser detects a syntax error,
VDLtScannerException - if the scanner detects a lexical error.
VDLtExceptionparse(),
hasMoreTokens()
public boolean hasMoreTokens()
throws IOException,
VDLtException
IOException - if the reading from the stream fails,
VDLtParserException - if the parser detects a syntax error,
VDLtScannerException - if the scanner detects a lexical error.
VDLtException
public Definitions parse()
throws IOException,
VDLtException
IOException - if the reading from the stream fails,
VDLtParserException - if the parser detects a syntax error,
VDLtScannerException - if the scanner detects a lexical error.
VDLtExceptionparseDefinition()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||