コード例 #1
0
        protected void RaiseException()
        {
            string s = GetExpr();

            ParserException exc = new ParserException(GetExpr(),
                                                      GetErrorMsg(),
                                                      mupGetErrorPos(m_parser),
                                                      GetErrorToken());

            throw exc;
        }
コード例 #2
0
        protected void RaiseException()
        {
            string s = mecGetExpr(m_parser);

            ParserException exc = new ParserException(mecGetExpr(m_parser),
                                                      mecGetErrorMsg(m_parser),
                                                      mecGetErrorPos(m_parser),
                                                      mecGetErrorToken(m_parser));

            throw exc;
        }
コード例 #3
0
      private void DumpException(ParserException exc)
      {
        string sMsg;

        sMsg = "An error occured:\n";
        sMsg += string.Format("  Expression:  \"{0}\"\n", exc.Expression);
        sMsg += string.Format("  Message:     \"{0}\"\n", exc.Message);
        sMsg += string.Format("  Token:       \"{0}\"\n", exc.Token);
        sMsg += string.Format("  Position:      {0}\n", exc.Position);

        meHistory.SelectionColor = System.Drawing.Color.Red;
        meHistory.AppendText(sMsg);
        meHistory.SelectionColor = System.Drawing.Color.Black;

        meHistory.SelectionStart = meHistory.TextLength;
        meHistory.ScrollToCaret();
      }
コード例 #4
0
        protected void RaiseException()
        {
            string s = GetExpr();

            ParserException exc = new ParserException(GetExpr(),
                                                      GetErrorMsg(),
                                                      mupGetErrorPos(m_parser),
                                                      GetErrorToken() );
            throw exc;
        }
コード例 #5
0
ファイル: muParser.cs プロジェクト: yoonian/muparsersse
        protected void RaiseException()
        {
            string s = mecGetExpr(m_parser);

            ParserException exc = new ParserException(mecGetExpr(m_parser),
                                                  mecGetErrorMsg(m_parser),
                                                  mecGetErrorPos(m_parser),
                                                  mecGetErrorToken(m_parser) );
            throw exc;
        }