hazzard993 / luatotypescript Goto Github PK
View Code? Open in Web Editor NEWConverts Lua code to TypeScript
License: MIT License
Converts Lua code to TypeScript
License: MIT License
https://github.com/fstirlitz/luaparse version 0.3.1 handles the repeat...until statement. Currently, however, there is an issue where LuaToTypeScript itself does not handle it, yielding "Error: Unknown Statement Type: RepeatStatement".
and
operation is being transformed as **
, shouldn't it be &&
?
if (not a and b) then
if (!a ** b) {
if (!a && b) {
It seems to be transformed here https://github.com/hazzard993/LuaToTypeScript/blob/master/src/Transformer.ts#L287
I'm trying out this tool for the first time, and it looks like it strips out all of the comments, which is a deal-breaker for me.
Is there any way that this feature could be added?
I'm planning to use the types from https://github.com/hazzard993/LuaToTypeScript/blob/master/src/ast.ts in one of my projects, is it ok if I do?
i have cloned project into my computer, but command "yarn global lua-to-typescript" did not work. it's hard to understand the useStep. can you update the readMe.md?
@see microsoft/TypeScript#36174
input
local M = {}
M.lspkind = {
Namespace = "",
Text = " ",
Method = " ",
Function = " ",
Constructor = " ",
Field = "ﰠ ",
Variable = " ",
Class = "ﴯ ",
Interface = " ",
Module = " ",
Property = "ﰠ ",
Unit = "塞 ",
Value = " ",
Enum = " ",
Keyword = " ",
Snippet = " ",
Color = " ",
File = " ",
Reference = " ",
Folder = " ",
EnumMember = " ",
Constant = " ",
Struct = "פּ ",
Event = " ",
Operator = " ",
TypeParameter = " ",
Table = "",
Object = " ",
Tag = "",
Array = "[]",
Boolean = " ",
Number = " ",
Null = "ﳠ",
String = " ",
Calendar = "",
Watch = " ",
Package = "",
}
output
export const lspkind = {
Namespace: '\uF816',
Text: '\uF77E ',
Method: '\uF6A6 ',
Function: '\uF6A6 ',
Constructor: '\uF423 ',
Field: '\uFC20 ',
Variable: '\uF52A ',
Class: '\uFD2F ',
Interface: '\uF0E8 ',
Module: '\uF487 ',
Property: '\uFC20 ',
Unit: '\uF96C ',
Value: '\uF89F ',
Enum: '\uF15D ',
Keyword: '\uF80A ',
Snippet: '\uF44F ',
Color: '\uF8D7 ',
File: '\uF718 ',
Reference: '\uF706 ',
Folder: '\uF74A ',
EnumMember: '\uF15D ',
Constant: '\uF8FE ',
Struct: '\uFB44 ',
Event: '\uF0E7 ',
Operator: '\uF694 ',
TypeParameter: '\uF783 ',
Table: '\uF0CE',
Object: '\uF668 ',
Tag: '\uF02B',
Array: '[]',
Boolean: '\uF042 ',
Number: '\uF292 ',
Null: '\uFCE0',
String: '\uF77E ',
Calendar: '\uF073',
Watch: '\uF64F ',
Package: '\uE624',
}
I was only able to get this working by checking out the 0.2.1 tag.
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.