Skip to content

Repository files navigation

Name of Programming Language

  • EMSC-L

Extension of Programming Language

  • .UCR

Name for the Compiler

  • EMSC-LC

Team

Language Features

Features Example
Integer Scalar Variables integer x; integer y; integer sum,avg;
One-Dimensional arrays of integers integer[] anArray = {1,2,3};
Assignment Statements integer one = 1; integer two = 2
Arithmetic Operations integer sum = one + two; integer diff = two - one; integer multiply = one * two; integer div = two / one;
Relational Operators 1 lt 2; 2 gt 1; 2 geq 1; 1 leq 2; 1 neq 2;
While or Do-While loops repeat{ operations}; repeat{ operations} while(condition);
Break Statement stop;
If-Then-Else Statements if condition then statements endif
Read and Write Statements readLn::input; writeLn::"Output";
Comments #
Functions integer main(integer one, integer two){ return one + two;}

Run Code

  • make
  • cat test/fib.ucr | ./parser
  • ./mil_run test.mil

Clean Code

  • make clean

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages