org.objectweb.fractal.adl
Interface Parser
- All Known Implementing Classes:
- XMLParser
- public interface Parser
An Abstract Syntax Tree (AST) parser.
parse
public Node parse(InputStream is,
String source)
throws ParserException
- Parses the given input stream and constructs the corresponding AST.
- Parameters:
is
- the input stream that must be parsed.source
- the source of this input stream (such as a file name).
- Returns:
- the AST corresponding to the given input stream content.
- Throws:
ParserException
- if an error occurs during parsing.