GithubHelp home page GithubHelp logo

miria-code-editor's Introduction

Miria Code Editor

This is a little project that was made to practice the concepts of Vue and the concepts of grammars, especifically, the context free grammars for creating a new programming language called Miria. You can give it a try here.

Features

Banner The main view consist of a text area and a div that mimics a console in which the ouput of the code will appear. Miria is still a very young language and thus only supports the following:

  • Declaration and assignment of variables
  • If statements
  • For, while and do-while statements

These specs a thoroughly explained in miria documentation here. The classic hello world program in Miria would be as follows:

define main as fun() -> void {
  log("Hello world")
}

Miria also recognizes errors related to data types, using variables that are not defined and ilegal operations.

Known bugs

  • Miria does not recognize scopes, thus when creating a variable inside any loop, miria will complain arguing that the variable already exist

Future improvements

  • Add break like statements
  • Fix the bug related to scopes
  • Add the ability to create arrays
  • Add the ability to create functions

Technologies used

  • Nearley was used to generate the parser for miria. The miria.ne file, which contains miria's grammar, can be found in the src/grammar/parser directory
  • Codemirror was used as the text editor

Huge thanks to @fireship-io for their tutorial on a css-only side navigation bar that ultimately defined the layout of the app.

miria-code-editor's People

Contributors

onlyforward0613 avatar

Stargazers

 avatar  avatar Davee avatar  avatar Ekans111 avatar  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.