efrederickson / kopilua-v5.1.5 Goto Github PK
View Code? Open in Web Editor NEWKopiLua updated to Lua 5.1.5
License: Other
KopiLua updated to Lua 5.1.5
License: Other
README for KopiLua 1.1 * What is KopiLua? ------------ Kopi Lua was originally a C# port of the Lua v.5.1.4 virtual machine, parser, libraries and command-line utilities. It has been updated to Lua 5.1.5 on 9/27/12 by Elijah Frederickson. * Availability ------------ Like Lua, KopiLua is freely available for both academic and commercial purposes. The COPYRIGHT file contains the license details as well as links to sites containing specific information with regards to the licensing terms. * Installation -------------- Kopi Lua is implemented in C# and has been tested on Microsoft Visual Studio 2012 Professional. In order for Kopi Lua to successfully compile the following conditional compilation symbols must be defined in the project settings: LUA_CORE;_WIN32;LUA_COMPAT_VARARG;LUA_COMPAT_MOD;LUA_COMPAT_GFIND;CATCH_EXCEPTIONS * Contact/Bug Reports etc ------------------------- Please report all bugs and issues to Elijah Frederickson/mlnlover11 (mailto:[email protected]) (Old: Please report all bugs and issues to Mark Feldman (mailto:[email protected])) (end of README)
maybe other csprojs? didnt check
Problem:
In the sample:
for i=1,10,1 do
print(os.date("%H:%M:%S"))
end
time is printed in the first iteration only.
Solution:
file KopiLua/src/loslib.cs
line 153 must look like:
CharPtr s = new CharPtr(LuaLOptString(L, 1, "%c"));
When I run script code like this:
file = io.open('Basin.file', 'r') for line in file:lines() do print(line) end
open() is ok, but it will throw function error() when load on call "for line in file:lines()". Is there any method can fix this problem?
My application loses it's CurrentCulture upon initialization and i narrowed it down to the first part using Lua.
I found a piece of code in KopiLua which sets the CurrentCulture to the InvariantCulture, which is quite a hack... When i let's say call
DateTime.Now.ToString();
it always returns the time in US format instead of my german setting.
The only workaround i can think of is calling lua in a separate thread, which will cause some other problems...
The code i found is in src/lparser.cs:474
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.