Class ALinearCParser
Unit
linearc
Declaration
type ALinearCParser = class(AParsedLanguageParser)
Description
This class represents a parser for the LinearC language. It descends from AParsedLanguageParser because the parser does not output to an intermediate code stream, and though it still makes use of a symbol table representative of the options that can be set on the command line by the user, it needs only one of those.
The parser automatically constructs an instance of TheLinearCLanguage to manage the tokens it parses. This language specification will be freed when the parser is freed.
To use the parser, simply pass an instance of AStringStream that contains a string with all command-line options on it to the constructor, then call ALinearCParser.parse.
Hierarchy
Overview
Fields
Methods
Description
Fields
Methods
|
constructor forSource(const ThisSource: AStream; const TheseOptions: ACommandLineOptionDictionary; const ThisLog: ALog); overload; virtual; |
Construct a new instance of ALinearCParser that will parse the command line represented by ThisSource using the options specified by TheseOptions , and outputting error and status information to ThisLog .
This method constructs a new instance of ATextInputStream around ThisSource .
|
|
function init: boolean; override; |
Initializer
|
|
function Options: ACommandLineOptionDictionary; virtual; |
Retrieve a reference to the dictionary of command-line options that may be set by the user.
The caller should NOT attempt to free this reference before freeing the parser.
|
Generated by PasDoc 0.13.0 on 2015-01-10 17:13:18
|