Mercurial Hosting > luan
comparison core/src/luan/modules/luan_to_java.luan @ 708:77e0c859c8a3
fix luan_to_java and fix line numbers
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 18 May 2016 18:11:00 -0600 |
parents | ca169567ce07 |
children |
comparison
equal
deleted
inserted
replaced
707:1ed9e55f0be8 | 708:77e0c859c8a3 |
---|---|
1 java() | 1 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( "stdin", Io.stdin.read_text() ) ) | 5 Io.stdout.write( LuanCompiler.toJava( Io.stdin.read_text(), "stdin" ) ) |