Property | Type | Description | |
---|---|---|---|
_files | Stack |
||
_lines | Stack |
||
_log | ILog | ||
_process | Stack |
||
_streams | Stack |
||
_variables | object>.Dictionary |
Method | Description | |
---|---|---|
Dispose ( ) : void |
Disposes of each open file.
|
|
Preprocessor ( string file, object>.Dictionary |
Constructs a YAML Preprocessor instance.
|
|
ReadLine ( ) : string |
Reads the next line of input from the YAML source.
|
Method | Description | |
---|---|---|
HandleDirective ( string line ) : void |
Handles a pre-processor directive (i.e. a line starting with %).
|
|
IncludeFile ( string file ) : void |
Includes the specified file, pushing the new file onto the stack, so that lines come from the new file until it is completed.
|
|
SubstituteVariables ( string line, object>.Dictionary |
Substitutes a value for any variables used in the supplied string. The variable values to be substituted are in the supplied dictionary.
|
protected HandleDirective ( string line ) : void | ||
line | string | |
return | void |
public Preprocessor ( string file, object>.Dictionary |
||
file | string | The source file that will drive the YAML parsing /// process. Note that this file may include other files, but all this /// is transparent to the YAMLParser. |
variables | object>.Dictionary | A Variables collection of variable names /// and values. The Variables collection may be modified by the /// Preprocessor in response to preprocessor directives to set/unset /// variables etc. |
return | System |
protected SubstituteVariables ( string line, object>.Dictionary |
||
line | string | |
variables | object>.Dictionary | |
return | string |