Giter Club home page Giter Club logo

racket-parser's Introduction

Racket-Parser

This was done as a part of an assignment for my Programming Languages course on Spring 2018

The goal of the assignment was to implement a lexer and parser in the programming language Racket to determine whether a code given was syntactically correct, according to the professors made up language. Given the language tokens and grammar, I first implemented the lexer, creating definitions for what were considered characters, digits, operators, etc. in the language and building on top of that for more complex rules such as an expression, term, factor, etc. After, a very simple parser was added, which just parses everything into a string "OKAY" which outputs to the console in the case that the lexer doesn't throw an incorrect syntax exception.

The most challenging part of this assignment was by far working with Racket. As a language based on Scheme, this was a syntax and a way of writing code I had never encountered before and which made the assignment very tedious since we were not only learning about lexers and parsers, but also a completely different the language from what we are used to at the same time.

racket-parser's People

Contributors

rampollaluis 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.