GithubHelp home page GithubHelp logo

sebcossu / sapy Goto Github PK

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

An interpreter written in JAVA from scratch for a subset of the BASIC language.

License: MIT License

HTML 87.12% Java 12.02% CSS 0.86%

sapy's Introduction

Sapy

An interpreter written in Java from scratch for a subset of the BASIC language.

This is a project that I made for a university exam about Java programming language.
The documentation is written in Italian, sorry... I'm going to translate it as soon as I have some spare time!

By the way, the interpreter can manage some basic constructs in the BASIC language like:

  • IF-THEN-ELSE
  • FOR loops
  • WHILE loops
  • variables with automatic types (like javascript)
  • two kind of basic types: strings and numbers (implemented as doubles)
  • logic and arithmetic expressions
  • support for nested control structures
  • a PRINT function that prints a variable or the result of an expression (both logical or arithmetical) on screen
  • an INPUT function that takes a variable in input (from the user's keyboard)

Of course it's a basic project, but it's something I used to understand some basic principles of programming and compiler's structure. Hope that will help you as well!

sapy's People

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.