Teuchos - Trilinos Tools Package
Version of the Day
|
A TeuchosParser Language for a subset of YAML. More...
Go to the source code of this file.
Namespaces | |
Teuchos | |
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos, as well as a number of utility routines. | |
A TeuchosParser Language for a subset of YAML.
This is a grammar for a subset of the YAML language. Since YAML is indentation-sensitive, it is not context-free. An extension has been made to Teuchos::Reader to emit INDENT and DEDENT tokens in order to make indentation detectable by a context-free grammar.
Known limitations of this grammar compared to the full YAML language, in particular those which are relevant to Teuchos::ParameterList:
INDENT and DEDENT tokens must be matched, meaning the indentation of the YAML file itself must be nicely nested. Examples of valid YAML that this grammar cannot handle, and workarounds:
Scalars can start with a '.' or '-', but not two such symbols in a row
Definition in file Teuchos_YAML.hpp.