awk4j is ...
The AWK~plus Programming Language
The AWK~plus Programming Language is the next generation script practice environment. `The AWK Programming Language' specifications and a main extension of GNU GAWK. Combination of Dynamic and Static typing. Parallel computing that a lock is free, and is thread safe at a language level.
AWK~plus Scripting for Android
The launcher which incorporated AWK~plus interpreter environment is available from an Android market.
awk4j (AWK for Java platform)
awk4j is AWK script practice environment for Java platforms. awk4j translates an AWK script into a host language (Java, JavaFX, JavaScript, BeanShell, Groovy, Python, Scala) and carries it out. Please experience the world of new multilingualism by awk4j.
Please experience the world of new multilingualism by awk4j.
AWK language | AWK commands (gawk, awk95 etc.) | |||||||||
Host language | Java | JavaScript (JSE6) | JavaScript (Rhino) | JavaFX | BeanShell | Groovy | Python | Scala | ||
Translator | AWK script to convert a host language translator | |||||||||
Interpreter | - | gij | jrunscript | Rhino interpreter | - | BeanShell interpreter | Groovy interpreter | Jython interpreter | Scala interpreter | |
Compiler | javac, dx | gcj, javac | javac | - | Rhino compiler | javaFX compiler | - | Groovy compiler | (Jython2.2.1) | Scala compiler |
Execution environment | Android | GCJ | Java (JSE6) | Java (JRE6) |
Tips
awk4j the input file, URL can be specified as a common interface files can be read. For more information, Quick Start refer to.
The world's shortest one-character script (one-liner).
Script '1',
C language the same meaning as TRUE.
'1==1 {print $0;}'
or '{print $0;}'
in the abbreviated form of output to input data to unconditionally.
By the way, if two characters 'NF'.
'0!=NF {print $0;}'
omission of input data in the form of zero unless the output of a
number of fields.
Scala Support (GUI version).
{ basename = FILENAME; result = result $0
}
END { IGNORECASE = 1
gsub(/<(!|meta)[^>]+>/, "", result); sub(/^.*<html[^>]+>/, "<html>", result)
sub(/<head>/, "<head><base href='" basename "' />", result)
#% val top = new MainFrame {
#% preferredSize = new java.awt.Dimension(880, 480); title = "awk4j - Browser (Scala)"
#% contents = new ScrollPane {
#% contents = new Label(""+ result)
#% }
#% }
#% top.pack()
#% top.visible = true
}
#% override def run__ = onEDT__ // executed on the Swing event dispatching thread.
News
- AWK~plus 1.0.3 - 2010/11/13
library updated Scala 2.8.1 final - AWK~plus 1.0.2, awk4j 1.6.4 - 2010/10/30
- new release `The AWK~plus Programming Language'
- 1.6.3 - 2010/3/22
・ Android 2.1 r1 SDK, Groovy 1.7.1, JavaFX 1.2.3 SDK, Scala 2.8.0.Beta1-prerelease - checking of operations
- 1.6.2 - 2009/12/5
・ Android 2.0 r3 SDK, Gcj 4.4.1 - Support
・ Groovy 1.7-RC-1, Jython 2.5.1 final, Scala 2.7.7 final - checking of operations
- 1.6.1 - 2009/10/4
・ Scala - Scala 2.7.7 RC1 checking of operations (Scala Support)
Optimized the output cord of the Translator and Sttatement; for(in){break/continue} Support
- 1.6.0 - 2009/9/26
Scala Language - New Support (Scala Support)
Android 1.6 r1, JavaFX 1.2.1, Groovy 1.6.4, Python(Jython) 2.5.1 rc3 - checking of operations - 1.5.7 - 2009/8/18
stable version of the re-factoring. - 1.5.6 - 2009/7/20
Android 1.5 SDK, Release 3, Python(Jython) 2.5.0 final - checking of operations
GCJ support - Compatibility with the JAVA platform was improved more by the enforcement of the re-factoring - 1.5.5 - 2009/6/7
JavaFX 1.2 SDK - New, Linux Support (JavaFX Support)
Android 1.5 SDK, Release 2, Groovy 1.6.3, Python(Jython) 2.5rc3, Rhino 1.7R2 - checking of operations
Compatibility of GNU AWK improved by the conversion of the RegExp by the Translator. - 1.5.4 - 2009/5/17
Android 1.5 SDK, Release 1 - Fix, problem of the Japanese indication (Android Support)
Python(Jython) 2.5rc2 - New, UNICODE encoding u'...' Support (Python Support)
Enforcement of the performance tuning (GCJ Support) - 1.5.3 - 2009/3/15
Android 1.1 SDK, Release 1 (Android Support)
- 1.5.2 - 2009/2/28
JavaFX 1.1 SDK - supports newspeak specifications - 1.5.1 - 2009/1/9
Draggable Applet Support (Java, JavaFX, Python) - 1.5.0 - 2008/12/21
- Python(Jython) 2.5beta0 - New (Python Support)
- JavaFX 1.0 SDK - supports newspeak specifications (JavaFX Support)
- Android 1.0 SDK, Release 2 - checking of operations (Android Support)
- 1.4.2 - 2008/11/16
Android 1.0 SDK. Release 1, SQLite JDBC Support (Android Support)