Click here to Skip to main content
15,895,781 members
Articles / Programming Languages / C#

LL Mathematical Parser

Rate me:
Please Sign up or sign in to vote.
4.88/5 (39 votes)
20 Jan 2010CPOL11 min read 70.8K   1.3K   82  
A mathematical parser based on Formal Language Theory constructs
namespace MathParser.v._3
{
    partial class Parser
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this._imagePanel = new System.Windows.Forms.Panel();
            this._btnClear = new System.Windows.Forms.Button();
            this.btnDraw = new System.Windows.Forms.Button();
            this._tbFunction = new System.Windows.Forms.TextBox();
            this.label1 = new System.Windows.Forms.Label();
            this._btnSave = new System.Windows.Forms.Button();
            this._imagePanel.SuspendLayout();
            this.SuspendLayout();
            // 
            // _imagePanel
            // 
            this._imagePanel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this._imagePanel.Controls.Add(this._btnSave);
            this._imagePanel.Controls.Add(this._btnClear);
            this._imagePanel.Controls.Add(this.btnDraw);
            this._imagePanel.Controls.Add(this._tbFunction);
            this._imagePanel.Controls.Add(this.label1);
            this._imagePanel.Dock = System.Windows.Forms.DockStyle.Right;
            this._imagePanel.Location = new System.Drawing.Point(238, 0);
            this._imagePanel.Name = "_imagePanel";
            this._imagePanel.Size = new System.Drawing.Size(251, 321);
            this._imagePanel.TabIndex = 0;
            // 
            // _btnClear
            // 
            this._btnClear.Location = new System.Drawing.Point(175, 126);
            this._btnClear.Name = "_btnClear";
            this._btnClear.Size = new System.Drawing.Size(75, 23);
            this._btnClear.TabIndex = 3;
            this._btnClear.Text = "Clear";
            this._btnClear.UseVisualStyleBackColor = true;
            this._btnClear.Click += new System.EventHandler(this._btnClear_Click);
            // 
            // btnDraw
            // 
            this.btnDraw.Location = new System.Drawing.Point(175, 94);
            this.btnDraw.Name = "btnDraw";
            this.btnDraw.Size = new System.Drawing.Size(75, 25);
            this.btnDraw.TabIndex = 2;
            this.btnDraw.Text = "Draw";
            this.btnDraw.UseVisualStyleBackColor = true;
            this.btnDraw.Click += new System.EventHandler(this.btnDraw_Click);
            // 
            // _tbFunction
            // 
            this._tbFunction.Location = new System.Drawing.Point(3, 16);
            this._tbFunction.Multiline = true;
            this._tbFunction.Name = "_tbFunction";
            this._tbFunction.Size = new System.Drawing.Size(243, 72);
            this._tbFunction.TabIndex = 1;
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(3, 0);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(205, 13);
            this.label1.TabIndex = 0;
            this.label1.Text = "Function (only \'x\' variable is allowed in f(x))";
            // 
            // _btnSave
            // 
            this._btnSave.Location = new System.Drawing.Point(175, 155);
            this._btnSave.Name = "_btnSave";
            this._btnSave.Size = new System.Drawing.Size(75, 23);
            this._btnSave.TabIndex = 4;
            this._btnSave.Text = "Save";
            this._btnSave.UseVisualStyleBackColor = true;
            this._btnSave.Click += new System.EventHandler(this._btnSave_Click);
            // 
            // Parser
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(489, 321);
            this.Controls.Add(this._imagePanel);
            this.Name = "Parser";
            this.Text = "Parser";
            this.Load += new System.EventHandler(this.Parser_Load);
            this.Paint += new System.Windows.Forms.PaintEventHandler(this.Parser_Paint);
            this.Resize += new System.EventHandler(this.Parser_Resize);
            this._imagePanel.ResumeLayout(false);
            this._imagePanel.PerformLayout();
            this.ResumeLayout(false);

        }

        #endregion

        private System.Windows.Forms.Panel _imagePanel;
        private System.Windows.Forms.TextBox _tbFunction;
        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.Button btnDraw;
        private System.Windows.Forms.Button _btnClear;
        private System.Windows.Forms.Button _btnSave;



    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
Moldova (Republic of) Moldova (Republic of)
Interested in computer science, math, research, and everything that relates to innovation. Fan of agnostic programming, don't mind developing under any platform/framework if it explores interesting topics. In search of a better programming paradigm.

Comments and Discussions