C# Class QUT.Gplex.Parser.RuleDesc

显示文件 Open project: spark-shading-language/spark Class Usage Examples

Private Properties

Property Type Description
Check void
MkDummyRuleDesc RuleDesc
ParseRE void
RuleDesc System
RuleDesc System
SemanticCheck void

Private Methods

Method Description
Check ( AAST aast, RegExTree tree ) : void
MkDummyRuleDesc ( LexCategory cat, AAST aast ) : RuleDesc
ParseRE ( AAST aast ) : void
RuleDesc ( ) : System
RuleDesc ( LexSpan loc, LexSpan act, List aList, bool bar ) : System
SemanticCheck ( AAST aast ) : void

This is the place to perform any semantic checks on the trees corresponding to a rule of the LEX grammar, during a recursive traversal of the tree. It is hard to do these on the fly during AST construction, because of the tree-grafting that happens for lexical categories. First check is that '^' and '$' can only appear (logically) at the ends of the pattern. Later need to check ban on multiple right contexts ...