view 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
line wrap: on
line source

java()
local LuanCompiler = require "java:luan.impl.LuanCompiler"
local Io = require "luan:Io.luan"

Io.stdout.write( LuanCompiler.toJava( "stdin", Io.stdin.read_text() ) )