compile-to-batch's People
Forkers
mr1aycompile-to-batch's Issues
bool not support
input.bb
a=true
output.cmd
a=%true%
this is wrong
The compiler should treat "true and false" as strings. should not convert as a variable
math operations
error between { and }
{
foo :: 42 + 84;
bar :: 42 * foo + 18;
print(bar - foo);
print(bar - foo, bar + foo);
print(bar * foo, bar / foo);
}
i get bad output for this code block .compiler messed it up
\n idea for print
you can add "\n" inside print.
now print dont support this
If statements always emit else labels
Temporaries escape their block
{
foo :: 42 + 84;
bar :: 42 * foo + 18;
print(bar - foo);
print(bar - foo, bar + foo);
print(bar * foo, bar / foo);
}
->
@set /a tmp0=%foo%+18
@set /a tmp1=%bar%-%foo%
@set /a tmp2=%bar%-%foo%
@set /a tmp3=%bar%+%foo%
@set /a tmp4=%bar%*%foo%
@set /a tmp5=%bar%/%foo%
@SETLOCAL EnableDelayedExpansion
@set /a foo=42+84
@set /a bar=42*%tmp0%
@echo %tmp1%
@echo %tmp2% %tmp3%
@echo %tmp4% %tmp5%
like this is wrong
i need comments
i want /* // */ property
you can add ternary operator
You can design a structure like the following in this project
int x = 10;
int y = 20;
int z = (x > y) ? x : y;
Fail to tokenize when an inline batch statement is the last statement
variable name rules
this is working
a=12;
b=13;
print(a,b);
but that arent working
a1=12;
a2=13;
print(a1,a2);
so yo can add variable definition consisting of letters and numbers
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.