C# Класс QUT.Gplex.Parser.RuleDesc

Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
Check void
MkDummyRuleDesc RuleDesc
ParseRE void
RuleDesc System
RuleDesc System
SemanticCheck void

Приватные методы

Метод Описание
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 ...