Giter Site home page Giter Site logo

posteruole / various_interpreters Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 600 KB

A collection of interpreters as part of the Translation of Programming Languages course materials.

Makefile 7.61% Lex 17.57% C++ 72.66% Assembly 1.02% Python 1.14%

various_interpreters's Introduction

Various interpeters

This repository contains the list of interpreters created during the Translation of Programming Languages course at the Faculty of Mathematics, University of Belgrade.

This repository contains the following colection of interpreters:

  • assembly generator
  • finite_automata - it's not actually a intepreter, but that's a concept alse presented throughout the course;
  • graph_operations
  • matrix - it's an interpreter that is able to process commands for the creation of matrices and commands for applying well-known operations on created matrices
  • polynomials - it's an interpreter that is able to process commands for the creation of polynomials and commands for applying well-known operations on created polynomials

Here are some of the commands we would like to process and execute:

<1, -3, 0, -1, 6>
<1, 2, 1, 2> + <0, -1, 3>
<1, 2, 1, 2> - <0, -1, 3>
<1, 2, 1, 2> * <0, -1, 3>
- <0, -1, 3>
p1 := <1, 2, 1, 2>
p2 := <0, -1, 3>
p1 * p2
p3 := (p1-p2)*<1>
p3
p1 == <1,2,3>
p1 != p2

//p1'
(p1+p2)'- <1, 1>'
//$p1|3
//$p1+p2|2.3
//<1, 2> + $p1+p2|2.3
//p1[1]
//(p1+p2)[0]
  • set_operations - it's an interpreter that is able to process commands for the creation of sets and commands for applying well-known operations on created sets Here are some of the commands we would like to process and execute:
A := {1, 2, 3, 4, 6};
B:={2, 4, 6, 8, 10};
print A;
print B;
print_ALL;
print A \/ B;
print A /\ B;
print A \ B;
print A <> B;
check 5 : A;
C:= 5..10;
D:= B\/C;
print C;

print D;

UniversalSet:={1,2,3,4,5,6,7,8,9,10};
card A;
print ~A;
A:=~A;
card A;
check A < B;
  • stacks_n_queues - it's an interpreter that is able to process commands for the creation of stacks and queues and commands for applying well-known operations on whichever of those two data structures are created

various_interpreters's People

Contributors

posteruole avatar petart99syrmia avatar

Watchers

 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.