public class DmdlParser extends Object
Constructor and Description |
---|
DmdlParser() |
Modifier and Type | Method and Description |
---|---|
AstScript |
parse(Reader source,
URI identifier)
Analyze DMDL Script from the source stream and returns a corresponded AST.
|
AstLiteral |
parseLiteral(String token)
Analyze the token as a DMDL literal.
|
public AstScript parse(Reader source, URI identifier) throws DmdlSyntaxException
source
- the script sourceidentifier
- the script identifier (nullable)DmdlSyntaxException
- if the specified script is not a valid DMDL scriptIllegalArgumentException
- if some parameters were null
public AstLiteral parseLiteral(String token) throws DmdlSyntaxException
token
- represents DMDL literalDmdlSyntaxException
- if the specified token is not a valid DMDL literalIllegalArgumentException
- if some parameters were null
Copyright © 2011–2017 Asakusa Framework Team. All rights reserved.