<html> <head> <meta http-equiv=content-type content="text/html; charset=UTF-8"> <title>Online AWK Interpreter</title> <style> body { font-family: georgia, tahoma, arial, sans-serif; } p { font-size: 13px; } h2 { font-size: 24px; font-style: italic; } </style> <script language='javascript'> function resize() { var width, height; if (navigator.appName.indexOf("Microsoft") == -1) { width = window.innerWidth; height = window.innerHeight; } else { width = document.body.clientWidth; height = document.body.clientHeight; } document.AseAwkApplet.width = width - 250; document.AseAwkApplet.height = height - 80; window.scroll (0, 0); } function load_sample1() { document.AseAwkApplet.clear (); document.AseAwkApplet.setSourceInput ( '# wordfreq.awk --- print list of word frequencies\n' + '{\n' + ' $0 = tolower($0); # remove case distinctions\n' + '\n' + ' # remove punctuation\n' + ' gsub(/[^[:alnum:]_[:blank:]]/, " ");\n' + '\n' + ' for (i = 1; i <= NF; i++) freq[$i]++;\n' + '}\n' + '\n' + 'END {\n' + ' for (word in freq)\n' + ' print word, freq[word];\n' + '}\n'); document.AseAwkApplet.setConsoleInput ( 'ASE aims to produce a script engine framework to ease the burden of creating a proprietary scripting language.\n' + 'It allows a hosting application to access various aspects of the embedded script engine and vice versa.'); } </script> </head> <body onLoad="resize()" onResize="resize()"> <h2>Online AWK Interpreter</h2> <table cellspacing=3> <tr> <td valign=top> <script src='AseAwkApplet.js'></script> </td> <td valign=top> <p> Applet ini untuk menguji binding JNI yang Interpreternya <a href='http://kldp.net/projects/ase/'>ASE</a> AWK. Bahasa AWK ini agak berbeda dengan yang standar, yang setiap perintah diakhri dengan tanda semikolon. You can enter a valid AWK program into the source input window and click on the <b>Run Awk</b> button while entering arbitrary text into the console input window if needed. You may click <a href='#' onClick='load_sample1(); return true;'>here</a> to load a sample program instead. </p> <p> <b>Note</b>: This java applet has been signed with a self-signed certificate. If you allow the applet to run, it will download a JNI file into your home directory. Currently, it supports Linux(i386) and Microsoft Windows(x86). If you decide to clean your system later, don't forget to delete the local JNI file downloaded. </p> <p> Copyright (c) 2006-2007, Hyung-Hwan Chung. All rights reserved. </p> </td> </tr> </table> <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-3036869-1"; urchinTracker(); </script> </body> </html>