Skip to content

Simple Compiler to Ragnakode Programming Language | Weekomp 2, 2019

License

Notifications You must be signed in to change notification settings

MarioMatheus/ragnakode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ragnakode - Simple Programming Language

Overview

Ragnakode is a simple language implemented for academic purposes. It was created for the “Developing your first language” talk with focus in explaining compilers functionality. This is part of Weekomp II, an event which occurs every year at Instituto Federal de Educação, Ciência e Tecnologia do Ceará (IFCE) - Campus Fortaleza. The event is promoted by veteran/alumni students of the computer engineering course with the objective of engaging the newcomers students to the course.

Map

Ragnakode Grammar

Tokens

  • command: STR | PRT | SUM | SUB | MUL | DIV
  • points: /:/
  • identifier: /[_]*[a-zA-Z][a-zA-Z0-9_]*/
  • number: /-?(0|[1-9]\d*)(\.\d+)?([eE][+-]?\d+)?/
  • arg: identifier | number

Productions

  • instructions -> instructions instruction | instruction
  • instruction -> identifier points operation
  • operation -> command args
  • args -> arg arg | arg | empty

License

The project is licensed by the MIT License - see LICENSE.md for more details.

About

Simple Compiler to Ragnakode Programming Language | Weekomp 2, 2019

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published