Giter VIP home page Giter VIP logo

varconverter's Introduction

VarJsConverter

Introduction

Translate the input variable names and variable values into code in various languages.

In the first line of input.txt, you should enter either js, ts or py to indicate whether you want to output as a JavaScript, TypeScript or Python file.

Write data in input.txt, translating the input variable names and variable values into JavaScript code, for example, varName varNum, such as hatmic 2009 indicating the declaration of the hatmic variable and assigning it the value 2009.

介绍

将输入的变量名和变量值翻译成各种语言的代码。

在 input.txt 的第一行,您应该输入 jsts,以指明您希望输出为 JavaScript 文件,TypeScript 文件还是 Python 文件。

input.txt 中写入数据,将输入的变量名和变量值翻译成 JavaScript 代码,例如 varName varNum,例如 hatmic 2009 表示声明 hatmic 变量并赋值为 2009

Input Output Case

#1

Input (in input.txt)

js
hatmic 2009

Output (in output.js)

let hatmic = 2009;
#2

Input (in input.txt)

js
hatmic 2009
hat mic
code cpp
code c
code javascript
code python
code dart

Output (in output.js)

let hatmic = 2009;
let hat = "mic";
let code = "cpp";
code = "c";
code = "javascript";
code = "python";
code = "dart";
#3

Input (in input.txt)

ts
hatmic 2009
hat mic
code cpp
code c
code javascript
code python
code dart

Output (in output.ts)

let hatmic = 2009;
let hat = "mic";
let code = "cpp";
code = "c";
code = "javascript";
code = "python";
code = "dart";

varconverter's People

Contributors

hatmic avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.