Code Monkey home page Code Monkey logo

projekt_jezik's Introduction

Build

Ubuntu 22.04

Prerequisites

LLVM 17: sudo apt install llvm-17 or:

wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 17
sudo apt install build-essential
sudo apt-get install libcurl4-openssl-dev
sudo apt install -y libzstd-dev
sudo apt-get install zlib1g-dev

Building

Standard cmake build.

Clone the repository git clone https://github.com/piilip/projekt_jezik

place yourself in the repository directory cd projekt_jezik

mkdir build
cd build
cmake .. 
make

Now you have executable moj in the build folder, which you can use like./moj <input_file> If you want to test some of the examples: ./moj ../example/<example_file>

By default we are also creating a .syn syntax file and two .ll files (LLVM IR, unoptimized and optimized). If you want to disable that you can call with DUMP=0 ./moj ../example/<example_file>

Windows

I recommend using WSL and following the instructions for Ubuntu 22.04, as building it on Windows requires obtaining the llvm-config file by compiling the llvm-project from source, at least the llvm part of it, which can take a lot of memory and time.

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.