Mercurial Hosting > luan
annotate core/src/luan/modules/luan_to_java.luan @ 693:ca169567ce07
module URIs must now include ".luan"
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 19 Apr 2016 15:54:11 -0600 |
parents | 49f3d290bebd |
children | 77e0c859c8a3 |
rev | line source |
---|---|
678 | 1 java() |
2 local LuanCompiler = require "java:luan.impl.LuanCompiler" | |
693
ca169567ce07
module URIs must now include ".luan"
Franklin Schmidt <fschmidt@gmail.com>
parents:
678
diff
changeset
|
3 local Io = require "luan:Io.luan" |
678 | 4 |
5 Io.stdout.write( LuanCompiler.toJava( "stdin", Io.stdin.read_text() ) ) |