Skip to content
This repository has been archived by the owner. It is now read-only.

InCodeDevs/Compiler

Repository files navigation

@incodelang/compiler

Merged into InCodeDevs/InCode

This is the official Compiler of the InCode Programming Language. Attention: This is version 2 of the Compiler, if your are looking for the legacy documentation please visit https://github.com/InCodeDevs/Compiler/tree/v1.x/#readme

Installation

Install @incodelang/compiler with npm

  npm install @incodelang/compiler

Install @incodelang/compiler with yarn

  yarn add @incodelang/compiler

Usage/Examples

Compiling InCode-Code

import { Compiler } from '@incodelang/compiler';

Compiler.compile("Create x as button");

Generating an Abstract-Syntax-Tree

import { AbstractSyntaxTreeGenerator } from '@incodelang/compiler';

AbstractSyntaxTreeGenerator.generate("Create x as button");

Generating Code from Abstract-Syntax-Tree

import { CodeGenerator, AbstractSyntaxTreeGenerator } from '@incodelang/compiler';

const ast = AbstractSyntaxTreeGenerator.generate("Create x as button");

CodeGenerator.generate(ast);

Authors

License

GPL-3.0

About

🎇Modern Compiler for the InCode Programming Language

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published