Class ALinearCAssignmentStatement

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type ALinearCAssignmentStatement = class(ALinearCStatement)

Description

This class represents an assignment statement in LinearC; that is, the portion of a command line where a value is assigned to a named option.

Hierarchy

Overview

Methods

Protected function parseSpecialCase: int64; virtual;
Public function parse: int64; override;

Description

Methods

Protected function parseSpecialCase: int64; virtual;

Parse a special-case uses of an assignment statement.

This method handles a couple of special cases where an assignment statement might be constructed where it is not actually needed. Remember that assignment statements are constructed whenever the parser encounters clopParameterNameDelimiter or clopParameterAbbreviationDelimiter, since these tokens are typically used to provide the name of an option to set. However, in two instances these tokens might be specified by themselves on the command line:

  • If clopParameterNameDelimiter is specified by itself on the command line, then that indicates that the user wants any all arguments which follow to be treated as rest arguments.

  • If clopParameterAbbreviationDelimiter is specified by itself on the command line, then that typically indicates that the user wants to specify stdin or stdout as the value of a string option (which presumably represents a path or file name). We parse the token as a rest argument.

Returns

The number of errors encountered while parsing.

Public function parse: int64; override;

Parse the assignment statement.

Returns

The number of errors encountered while parsing.


Generated by PasDoc 0.13.0 on 2015-06-25 11:07:51