Giter Site home page Giter Site logo

atm-basic's Introduction

atm-basic

Corectare

Copiati fisierele voastre, main.js si parser-ul, in acest director.

Script-ul de corectare este corectare_tema2.sh. Trebuie sa il faceti executabil inainte.

chmod a+x corectare_tema2.sh
./corectare_tema2.sh

ATENTIE: testele nu sunt inca toate, voi mai adauga

files - contine fisierele sursa pentru teste impartite pe categorii outputs - contine fisierele rezultate .out - scris pe ecran .errno - numarul erorii

Dupa corectare, apare un director numit results. Acelea sunt rezultatul rularii temei

Codurile de eroare

var ERROR_PARSER=1;
var ERROR_VARIABLE_REDECLARED=2;
var ERROR_VARIABLE_UNDECLARED=3;
var ERROR_SUB_REDECLARED=4;
var ERROR_SUB_UNDECLARED=5;
var ERROR_TYPECAST=6;
var ERROR_DIVISION_BY_0=7;
var ERROR_WRONG_NUMBER_PARAMETERS=8;

La parser, va rog sa puneti try catch si sa intoarceti eroarea ERROR_PARSER, altfel parsre-ul intarce un alt code de eroare. De asemenea este util sa afisati exceptia aruncata de parser pentru a afisa eroarea.

try
{
	basic = atm_basic_parser.parse (filedata);
}
catch (e)
{
	console.log (e);
	process.exit (ERROR_PARSER);
}

atm-basic's People

Contributors

alexandruradovici avatar

Watchers

 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.