Recovered from cvs revision 2007-08-21 14:24:00

This commit is contained in:
2007-08-21 23:24:00 +00:00
parent 72c5c9174c
commit a7a4d8de4c
5 changed files with 159 additions and 84 deletions

View File

@ -16,10 +16,12 @@ namespace asetestnet
InitializeComponent();
}
object sin(string name, ASE.Net.Awk.Argument[] args)
/*bool sin(string name, ASE.Net.Awk.Argument[] args, ASE.Net.Awk.Return ret)
{
return System.Math.Sin(args[0].ToReal());
}
//ret.DoubleValue = System.Math.Sin(args[0].RealValue);
ret.RealValue = System.Math.Sin(args[0].RealValue);
return true;
}*/
private void btnRun_Click(object sender, EventArgs e)
{
@ -31,7 +33,7 @@ namespace asetestnet
tbxSourceOutput.Text = "";
tbxConsoleOutput.Text = "";
awk.AddFunction("sin", 1, 1, sin);
//awk.AddFunction("sin", 1, 1, sin);
if (!awk.Parse(tbxSourceInput, tbxSourceOutput))
{
MessageBox.Show("Parse error");