GithubHelp home page GithubHelp logo

spo_lab's Introduction

SPO_Lab [My project for university]

Description

Project with my prog language for university

  • Gach consists of 4 main parts:
    • Lexer
    • Parser
    • RPN
    • Stack Machine

Features

  • Gach has a minimal standard set of operators, cycles and conditions
  • Supports two classes:
    • Hash Set
    • Linked List
  • Supports printing in console

Lexems

    CYCLE("CYCLE", Pattern.compile("^while"), 0),
    PRINT("PRINT", Pattern.compile("^print"), 0),
    TYPE_OP("TYPE_OP", Pattern.compile("^type"), 1),
    TYPE("TYPE", Pattern.compile("^Float|List|HashSet"), 0),
    GET("GET", Pattern.compile("^[.]get"), 5),
    METHOD("METHOD", Pattern.compile("^[.](add|get|remove|contains|set)"), 5),
    DIGIT("DIGIT", Pattern.compile("^0|[1-9][0-9]*[.]?[0-9]*|0[.][0-9]*"), 0),
    VAR("VAR", Pattern.compile("^[a-zA-Z]+[0-9]*[a-zA-Z]*"), 0),
    COMP_OP("COMP_OP",Pattern.compile("^==|<|>"),1),
    ASSIGN_OP("ASSIGN_OP", Pattern.compile("^:="), 2),
    OP_ADD_SUB("OP_ADD_SUB", Pattern.compile("^[+|-]"), 3),
    OP_DIV_MUL("OP_DIV_MUL", Pattern.compile("^[*|/]"), 4),
    SPACE("SPACE", Pattern.compile("^\\s"), 0),
    L_B("L_B", Pattern.compile("^[(]"), 0),
    J_C("J_C", Pattern.compile("^!F"), 0),
    JMP("JMP", Pattern.compile("^!"), 0),
    R_B("R_B", Pattern.compile("^[)]"), 0),
    L_F_B("L_F_B",Pattern.compile("^[{]"),0),
    R_F_B("R_F_B",Pattern.compile("^[}]"),0),
    END("END", Pattern.compile("^[;]"), 0),
    COMA("COMA", Pattern.compile("^[,]"), 0);

spo_lab's People

Contributors

planck1858 avatar

Stargazers

 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.