예제 #1
0
        bool Exec(PegCharParser.Matcher startRule, out PegNode tree)
        {
            bool bMatches = startRule();

            tree = ((PegCharParser)startRule.Target).GetRoot();
            return(bMatches);
        }
예제 #2
0
 internal SampleInfo(ESampleId grammarId,PegCharParser.Matcher startRule,
     string grammarName,
     string grammarDescription,
     string samplesDirectory,
     List<IParserPostProcessor> postProcessors)
 {
     this.grammarId = grammarId;
     this.startRule = startRule;
     grammarName_ = grammarName;
     grammarDescription_ = grammarDescription;
     this.samplesDirectory = samplesDirectory;
     postProcessors_ = postProcessors;
 }
예제 #3
0
 internal SampleInfo(ESampleId grammarId,PegCharParser.Matcher startRule,
     string grammarName,
     string grammarDescription,
     string samplesDirectory,
     List<IParserPostProcessor> postProcessors)
 {
     this.grammarId = grammarId;
     this.startRule = startRule;
     grammarName_ = grammarName;
     grammarDescription_ = grammarDescription;
     this.samplesDirectory = samplesDirectory;
     postProcessors_ = postProcessors;
 }