Skip to content

project-langx/X

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

158 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

X Programming Language

X is a placeholder language with a python and JS like syntax and a shareable bytecode IR that can be translated into any other programming language.

Languages Supported

  1. C
  2. C++
  3. Java
  4. Python

What does this list mean? This means that you can compile your X code into any one of these programming languages 😲😲😲😲!

Installation

The latest build of X is available on pypi, install it using:

user@programmer~:$ pip install langx

Pipeline

Steps to run

  1. Write a script in X and save it with .x extension.

  2. To run the script:

user@programmer~:$ x -i <filename>.x
  1. To compile to C:
user@programmer~:$ x -i <filename.x> --decompile-c
  1. To compile to C++:
user@programmer~:$ x -i <filename.x> --decompile-cpp
  1. To compile to Java:
user@programmer~:$ x -i <filename.x> --decompile-java
  1. To compile to Python:
user@programmer~:$ x -i <filename.x> --decompile-py

Tools for X language developers

  1. Check the tokens for the script
user@programmer~:$ x -i <filename>.x -t
  1. Check the syntax tree for the script
user@programmer~:$ x -i <filename>.x -p
  1. Check the compiled bytecodes for the script
user@programmer~:$ x -i <filename>.x -c
  1. X also offers a web based debugger called xdb. To use it start the xdb server and follow along
user@programmer~:$ xdb

About

A placeholder language with shareable bytecode IR.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors