Example #1
0
        public EpiInterpreterParser(IEnterInterpreterHost pEnterCheckCodeInterface)
        {
            Stream stream = EpiInterpreterParser.GetEnterCompiledGrammarTable();

            Init(stream);
            pEnterCheckCodeInterface.Register(this);
            this.EnterCheckCodeInterface = pEnterCheckCodeInterface;
        }
Example #2
0
        public Epi.Core.EnterInterpreter.Rule_Context GetCheckCodeObj(System.Xml.Linq.XDocument xdoc, System.Xml.Linq.XDocument xdocResponse, string FormCheckCode)
        {
            Epi.Core.EnterInterpreter.EpiInterpreterParser EIP    = new Epi.Core.EnterInterpreter.EpiInterpreterParser(Epi.Core.EnterInterpreter.EpiInterpreterParser.GetEnterCompiledGrammarTable());
            Epi.Core.EnterInterpreter.Rule_Context         result = (Epi.Core.EnterInterpreter.Rule_Context)EIP.Context;
            result.LoadTemplate(xdoc, xdocResponse);
            EIP.Execute(FormCheckCode);

            return(result);
        }
Example #3
0
        public Epi.Core.EnterInterpreter.Rule_Context GetRelateCheckCodeObj(List <Epi.Web.Common.Helper.RelatedFormsObj> Obj, string FormCheckCode)
        {
            Epi.Core.EnterInterpreter.EpiInterpreterParser EIP    = new Epi.Core.EnterInterpreter.EpiInterpreterParser(Epi.Core.EnterInterpreter.EpiInterpreterParser.GetEnterCompiledGrammarTable());
            Epi.Core.EnterInterpreter.Rule_Context         result = (Epi.Core.EnterInterpreter.Rule_Context)EIP.Context;
            foreach (var item in Obj)
            {
                result.LoadTemplate(item.MetaData, item.Response);
            }
            EIP.Execute(FormCheckCode);

            return(result);
        }