GithubHelp home page GithubHelp logo

saqlain2204 / langtrans Goto Github PK

View Code? Open in Web Editor NEW

This project forked from langtrans/langtrans

1.0 0.0 0.0 2.86 MB

Customize programming languages

Home Page: https://langtrans.github.io

License: MIT License

Python 100.00%

langtrans's Introduction

LangTrans

To customize any programming language

Discord Docs License

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))
#Scope syntax work like in javascript
#scope1#
print("Scope1")
print("Done")

#scope2#
print("scope2")
print("Done")

#PEP 359 - The "make" statement 
make type name(arg):
	x = 1
	y = 3
Customized Syntax of LISP
func printhis(s):
	format(t,s)
printhis("Customized!")

Documentation

Getting Started

Full Documentation.

Languages

Share your language here

Downloads

Standalone
Installer

langtrans's People

Contributors

b-r-p avatar adeon18 avatar meaviral17 avatar d-mielewczyk avatar saqlain2204 avatar

Stargazers

 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.