Getting Started
How to run example?
Download
Latest
git clone https://github.com/LangTrans/LangTrans.gitStandalone (Alternate)
Create Source Code
# Anonymous function
inc = (x) => x+1
# Lambda function
twice(x) = 2*x
# Print Done if x is defined other wise Failed
print((x||True)?"Done":"Failed")
# Single Line if and check x defined or not
print('x is not defined') if !x
# Pipe Syntax
1 -> inc
|> print
# Reverse Pipe
print<-inc<-inc<-1
# Arithmetic operations with functions
print((inc+twice)(3))
#Scope syntax work like in javascript
#scope1#
print("Scope1")
print("Done")
#scope2#
print("Scope2")
print("Done")Transpile Code
With YAML files
For source code
Standalone
With compiled syntax (Alternate Method)
Compile syntax
Generate code
Last updated