Skip to content

Sequensa programming language, API, tool chain, and stdlib

Notifications You must be signed in to change notification settings

magistermaks/sequensa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sequensa

Logo

General info: Sequensa is a esoteric programing language based on C++ stream syntax that is good enough to actually use it.

Read more about Sequensa programming language here
Learn how to compile/install Sequensa here

This repository contains:

  • Sequensa API - single file embeddable C++ Sequensa API
  • Sequensa STL - shared libraries injected into Sequensa at runtime
  • Sequensa CLI - application used to compile and run Sequensa programs

Features

  • Interactive shell and extensive CLI
  • Compiler and decompiler
  • Easy to embed (single file API)
  • Simple to use dynamic library interface
  • Bindings to different languages (Java, Python)

Sequensa API

The API is located in /src/api/SeqAPI.hpp and contains all the basic documentation to get you started

#define SEQ_IMPLEMENT
#include "SeqAPI.hpp"

int main() {

	std::string code = "#exit << \"Hello World!\"";
	
	auto buffer = seq::Compiler::compileStatic( code );
	seq::ByteBuffer bb( buffer.data(), buffer.size() );

	seq::Executor exe;
	exe.execute( bb );
	
	std::cout << exe.getResultString();
	
}