EControl Syntax Editor SDK
TGrammaAnalyzer.Gramma Property

Specifies grammar definition.

property Gramma: ecString;

Grammar definition represents a code of rules in text form. 

Syntax of grammar definitions:

Rule = RuleName '=' Branch_list ';'
Branch_list = Item_list | Branch_list '|' Item_list
Item_list = Item | Item_list Item
Item = RuleName | '"' Term '"' | ''' Term ''' | '<' TokenType '>'


"Term" - case insensitive terminal, 

'Term' - case sensitive terminal, 

TokenType - name of token type, 

RuleName - name of grammar rule. 


There is reserved rule name "Skip", that is used to specify skipping sequence. This rule is executed after each item processing.

Copyright (c) 2004-2011. All rights reserved.
What do you think about this topic? Send feedback!