Beispiel #1
0
 public StdInterpreterPackage(ConfigurableEWRIptrFactory factory, ImmediateGiver <Behaver, GrammarBlock> behaverGiver)
 {
     _fAnalyser        = factory.NewConfigurableFAnalyser();
     _gAnalyser        = factory.NewConfigurableGAnalyser();
     _bAnalyser        = factory.NewConfigurableBAnalyser(behaverGiver);
     _configurableIptr = factory.NewNativeConfigurableERWInterpreter();
     _configurableIptr.SetFAnalyser(_fAnalyser);
     _configurableIptr.SetGAnalyser(_gAnalyser);
     _configurableIptr.SetBAnalyser(_bAnalyser);
 }
Beispiel #2
0
        public ConfigurableBAnalyserBridge NewConfigurableBAnalyser(ImmediateGiver <Behaver, GrammarBlock> behaverFactory)
        {
            var factoryBridge = new BehaverFactoryBridge(behaverFactory, helperFactory);

            factory.Add(factoryBridge);
            var anlys = new ConfigurableBAnalyserBridge {
                helperFactory = helperFactory, implPtr = NewConfigurableBAnalyser(implPtr, factoryBridge.nativeFactoryPtr)
            };

            if (nativeBehaverGetter != null)
            {
                nativeBehaverGetter.GetElement(new NativeBehaverGetter {
                    bAnlys = anlys
                });
            }
            return(anlys);
        }
Beispiel #3
0
 public void SetBAnalyser(ConfigurableBAnalyserBridge bAnalyser)
 {
     currentBAnlys = bAnalyser;
     SetBAnalyser(implPtr, currentBAnlys.implPtr);
 }