Recovered from cvs revision 2007-11-05 14:20:00
This commit is contained in:
parent
3f7b3c443c
commit
aff4713d31
@ -1,4 +1,4 @@
|
|||||||
<!-- $Id: build.xml,v 1.3 2007/04/30 05:51:26 bacon Exp $ -->
|
<!-- $Id: build.xml,v 1.4 2007/11/04 04:06:37 bacon Exp $ -->
|
||||||
|
|
||||||
<project name="ase" default="release" basedir=".">
|
<project name="ase" default="release" basedir=".">
|
||||||
|
|
||||||
@ -60,7 +60,7 @@
|
|||||||
<delete dir="${bindir}/ase" verbose="true" />
|
<delete dir="${bindir}/ase" verbose="true" />
|
||||||
<delete dir="${bindir}/META-INF" verbose="true" />
|
<delete dir="${bindir}/META-INF" verbose="true" />
|
||||||
|
|
||||||
<copy file="test/awk/AseAwkApplet.html" todir="${bindir}" />
|
<copy file="test/awk/AseAwkApplet.html" todir="${destdir}" />
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="clean" description="clean up">
|
<target name="clean" description="clean up">
|
||||||
|
@ -11,10 +11,13 @@
|
|||||||
* added three new options - ASE_AWK_RESET, ASE_AWK_MAPTOVAR, ASE_AWK_PABLOCK
|
* added three new options - ASE_AWK_RESET, ASE_AWK_MAPTOVAR, ASE_AWK_PABLOCK
|
||||||
|
|
||||||
* enhanced Awk::dispatchFunction to set a more accurate error code (awk/Awk.cpp)
|
* enhanced Awk::dispatchFunction to set a more accurate error code (awk/Awk.cpp)
|
||||||
|
* enhanced the JNI binding to integrate most of the changes so far.
|
||||||
|
|
||||||
* fixed a bug
|
* fixed a bug
|
||||||
- memory leak if a null statement or a block with no statements are
|
- memory leak if a null statement or a block with no statements are
|
||||||
present in an AWK program. (awk/parse.c)
|
present in an AWK program. (awk/parse.c)
|
||||||
|
- memery leak if a return value is set by an intrinsic function
|
||||||
|
but it ends up with an error. (awk/run.c - eval_call)
|
||||||
|
|
||||||
* changed the access modifier for the Awk::Source::Source from public
|
* changed the access modifier for the Awk::Source::Source from public
|
||||||
to protected.
|
to protected.
|
||||||
|
@ -24,4 +24,4 @@ ASE는 임베딩을 목적으로 여러가지 프로그래밍언어를 구현하
|
|||||||
|
|
||||||
== Licensing ==
|
== Licensing ==
|
||||||
|
|
||||||
ASE는 {BSD 라이센스,license.html}하에 무료로 배포된다. 단 {라이센스,license.html}는 번역상에 발생할수 있는 문제를 최소화하기 위해 영문으로만 제공된다.
|
ASE는 {BSD 라이센스,license.html}하에 무료로 배포된다.
|
||||||
|
@ -1,8 +1,57 @@
|
|||||||
<html>
|
<html>
|
||||||
<body>
|
<head>
|
||||||
|
<title>Online ASE AWK Interpreter</title>
|
||||||
|
<style>
|
||||||
|
body { font-family: tahoma, arial, sans-serif; }
|
||||||
|
p { font-size: 13px; }
|
||||||
|
h2 { font-size: 24px; font-style: italic; }
|
||||||
|
</style>
|
||||||
|
|
||||||
<applet code="AseAwkApplet" archive="aseawk.jar" codebase="." width="640" height="480">
|
<script language='javascript'>
|
||||||
|
|
||||||
|
function resize()
|
||||||
|
{
|
||||||
|
if (navigator.appName.indexOf("Microsoft") != -1)
|
||||||
|
{
|
||||||
|
width = document.body.clientWidth;
|
||||||
|
height = document.body.clientHeight;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
width = window.innerWidth - 20;
|
||||||
|
height = window.innerHeight - 20;
|
||||||
|
}
|
||||||
|
|
||||||
|
document.awkApplet.width = width - 250;
|
||||||
|
document.awkApplet.height = height - 80;
|
||||||
|
window.scroll (0, 0);
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body onLoad="resize()" onResize="resize()">
|
||||||
|
|
||||||
|
<h2>Online ASE AWK Interpreter</h2>
|
||||||
|
|
||||||
|
<table cellspacing=3>
|
||||||
|
<tr>
|
||||||
|
<td valign=top>
|
||||||
|
<applet name="awkApplet" code="AseAwkApplet" archive="bin/aseawk.jar" codebase="." width="700" height="550">
|
||||||
</applet>
|
</applet>
|
||||||
|
</td>
|
||||||
|
<td valign=top>
|
||||||
|
<p>
|
||||||
|
This applet is a test program for JNI binding to the <a href='http://kldp.net/projects/ase/'>ASE</a> AWK interpreter. The AWK language supported is slightly different from the standard in that all statements must end with a semicolon. You may enter a valid AWK program into the source input window and click on the <b>Run Awk</b> button. You may enter arbitrary text into the console input window if the AWK program entered contains an action-pattern block.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<b>Note</b>: This java applet has been signed with a self-signed certificate. If you allow the program to run, it will download a JNI DLL into your home directory. Currently, it supports Microsoft Windows only and the only file downloaded by this applet is aseawk_jni.dll. If you decide to clean your system later, don't forget to delete this file from your home directory.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Copyright (c) 2006-2007, Hyung-Hwan Chung. All rights reserved.
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $Id: AseAwkPanel.java,v 1.21 2007/11/03 14:35:02 bacon Exp $
|
* $Id: AseAwkPanel.java,v 1.22 2007/11/04 05:01:41 bacon Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import java.awt.*;
|
import java.awt.*;
|
||||||
@ -860,6 +860,7 @@ public class AseAwkPanel extends Panel implements DropTargetListener
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dtde.rejectDrop ();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void loadFileTo (File file, TextArea textArea) throws IOException
|
private void loadFileTo (File file, TextArea textArea) throws IOException
|
||||||
|
Loading…
Reference in New Issue
Block a user