Mercurial Hosting > luan
comparison src/luan/modules/luan_to_java.luan @ 1353:8d95711f6615
replace java() with require "java"
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Wed, 20 Mar 2019 17:03:29 -0600 |
| parents | 1a68fc55a80c |
| children |
comparison
equal
deleted
inserted
replaced
| 1352:1604d7f36f3a | 1353:8d95711f6615 |
|---|---|
| 1 java() | 1 require "java" |
| 2 local LuanCompiler = require "java:luan.impl.LuanCompiler" | 2 local LuanCompiler = require "java:luan.impl.LuanCompiler" |
| 3 local Io = require "luan:Io.luan" | 3 local Io = require "luan:Io.luan" |
| 4 | 4 |
| 5 Io.stdout.write( LuanCompiler.toJava( Io.stdin.read_text(), "stdin" ) ) | 5 Io.stdout.write( LuanCompiler.toJava( Io.stdin.read_text(), "stdin" ) ) |
