To customize any programming language
LangTrans is a syntactic preprocessor
It helps you to customize the syntax of any programming language
It converts customized syntax to original syntax.
It uses regular expression but it supports nesting(called part calling).
Example
Customized Syntax of Python
#Print
p"Hello World"
# Anonymous function
inc = (x) => x+1
# Lambda function
twice(x) = 2*x
# Single Line try-except
try inc("1") Exception print("Error:",err)
# 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
# Arithmetic operations with functions
print((inc+twice)(3))
…