C# Class XSpect.Yacq.LanguageServices.StandardGrammar

Provides the default grammar. This grammar cannot modify.
Inheritance: Grammar
Mostrar archivo Open project: takeshik/yacq

Public Methods

Method Description
Add ( RuleKey key, YacqExpression>.Lazy value ) : void

Adds the rule to this grammar. The standard grammar cannot modify.

Clear ( ) : void

Removes all rules from this grammar. The standard grammar cannot modify.

Remove ( RuleKey key ) : System.Boolean

Removes the symbol with the specified symbol key from this symbol table. The standard grammar cannot modify.

this ( RuleKey key ) : YacqExpression>>.Lazy

Gets the reference to the parser with specified rule key.

Private Methods

Method Description
CheckIfReadOnly ( ) : void
SetPosition ( YacqExpression>.Parser parser ) : YacqExpression>.Parser
StandardGrammar ( ) : System

Method Details

Add() public method

Adds the rule to this grammar. The standard grammar cannot modify.
public Add ( RuleKey key, YacqExpression>.Lazy value ) : void
key RuleKey The rule key to add.
value YacqExpression>.Lazy The reference to the parser which defines the rule.
return void

Clear() public method

Removes all rules from this grammar. The standard grammar cannot modify.
public Clear ( ) : void
return void

Remove() public method

Removes the symbol with the specified symbol key from this symbol table. The standard grammar cannot modify.
public Remove ( RuleKey key ) : System.Boolean
key RuleKey The rule key to remove.
return System.Boolean

this() public method

Gets the reference to the parser with specified rule key.
public this ( RuleKey key ) : YacqExpression>>.Lazy
key RuleKey The rule key to get the parser.
return YacqExpression>>.Lazy