Skip to main content

A placeholder language with shareable bytecode IR

Project description

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 😲😲😲😲!

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

langx-0.1a0.tar.gz (10.2 kB view hashes)

Uploaded Source

Built Distribution

langx-0.1a0-py3-none-any.whl (28.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page