cafe
cafe copied to clipboard
Cafe- The Programming Language
Tasks Done: Expression IR For loop Collections TODO: Conditional Statements import/export Objects Functions
This gets accepted: ```javascript cafe -c ./ForLoop.cafe.txt ```
Example: ```javascript func A(){ var a; # local variable `a` func B(a){ # parameter `a` collides with parent declaration `a` cmd.println("I am in B"); } return B; } ``` Throws...
The following compiles, but fails to write it to a file: ``` cafe -c export.cafe ``` Exception thrown: ``` [SUCCESS] java.io.FileNotFoundException: null\anonymous.class (The system cannot find the path specified) at...
The following code should throw an error, but it compiles & runs successfully. ```javascript import c as B from '..'; c(); // this call should throw an error message as...
Input: ```javascript var x = "This is a cafe example.\nI am testing \"Strings\"."; cmd.println(x); ``` Output: ``` This is a cafe example. I am testing Strings. ``` `""` are not...
_This stage is completed till parser._ For-each loop support for all collections/data-structures & objects.
_This stage is completed till parser._ ### Data Structures 1. List 2. LinkedList 3. Map 4. Set - [ ] Above data structure support - [ ] Support for basic...