Recovered from cvs revision 2007-08-20 14:19:00

This commit is contained in:
2007-08-20 23:27:00 +00:00
parent 153b5c7b45
commit 72c5c9174c
6 changed files with 258 additions and 64 deletions

View File

@ -335,7 +335,7 @@ namespace asetestnet
this.Controls.Add(this.panel2);
this.Controls.Add(this.statusStrip1);
this.Name = "AwkForm";
this.Text = "ASE.CNT.AWK";
this.Text = "ASE.NET.AWK";
this.tableLayoutPanel1.ResumeLayout(false);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();

View File

@ -16,16 +16,22 @@ namespace asetestnet
InitializeComponent();
}
object sin(string name, ASE.Net.Awk.Argument[] args)
{
return System.Math.Sin(args[0].ToReal());
}
private void btnRun_Click(object sender, EventArgs e)
{
//using (Awk awk = new Awk())
for (int i = 0; i < 10000; i++)
//for (int i = 0; i < 100; i++)
{
Awk awk = new Awk();
tbxSourceOutput.Text = "";
tbxConsoleOutput.Text = "";
awk.AddFunction("sin", 1, 1, sin);
if (!awk.Parse(tbxSourceInput, tbxSourceOutput))
{
MessageBox.Show("Parse error");