Coder Social home page Coder Social logo

clarus / crema Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ainfosec/crema

0.0 3.0 0.0 2.27 MB

Crema: A Sub-Turing Programming Language

License: MIT License

Makefile 0.54% C++ 82.23% Lex 1.16% Yacc 4.95% C 8.36% Shell 0.66% Ruby 2.10%

crema's Introduction

Crema

(C) 2014-2015 Assured Information Security, Inc.

Introduction

Crema is a LLVM front-end that aims to specifically execute in sub-Turing Complete space. Designed to be simple to learn, and practical for the majority of programming tasks needed, Crema can restrict the computational complexity of the program to the minimum needed to improve security.

Technical Details

Crema is developed in C++ in order to natively utilize the LLVM tool-chain and integrate with flex/bison to simplify parser generation.

Getting started

Start off by cloning the latest version of Crema from this git repository

Building the Crema Tool

Before building the Crema tool, make sure that you have the following dependencies installed on your environment:

  1. g++
  2. bison: http://www.gnu.org/software/bison/
  3. llvm-dev
  4. flex: http://flex.sourceforge.net/

Build the Crema tool by running make in the src directory. This will create the "cremacc" program. You can clean the src directory by running make clean

Compiling your Crema programs with cremacc

To compile a Crema program into LLVM IR for JIT execution, simply use the "cremacc" program.

Crema files use the extention ".crema". To build a crema file into an executable named "program.exe", use the command:

./cremacc -f <path-to-a-crema-file> -o program

To print LLVM assembly to a file, use the -S option: ./cremacc -f <path-to-a-crema-file> -S <output-file-name>.ll

For help with all of the other command line options available for cremacc, simply run: ./cremacc -h

Learning Crema

Use this repository's Wiki page to get started with code examples, reference information, and other general topics about the Crema language.

Distribution Statement "A" (Approved for Public Release, Distribution Unlimited)

crema's People

Contributors

dotsond avatar jaredwright avatar ranok avatar tn3rt avatar

Watchers

 avatar  avatar  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.