-
Notifications
You must be signed in to change notification settings - Fork 7
IceBox: Turning COOL code into cooler results! #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Completed lexer for COOL. A lexer, or lexical analyzer, is a program that transforms an input string (source code) into a sequence of tokens, which are meaningful character strings. The code defines several classes: The The The The The The |
Now the Debugging beggins
@Greenman44 we have a bug in the let expression when an extra comma before in. let id1: Int, let id2: String <- "Val",
in {
} Also happens in test1.tests4(1, 2,) I think we need to change from while to do-while |
…g efficiently Fix parseing let and argmuments when Extra Comma
Errors in parser to solve:
|
Fix Extra comma on arguments / parameters in method call / definition Fix Type/Class names must begin with uppercase letters Fix Identifiers names must begin with lowercase letters Fix Case must contain at least one branch
…t visitor pattern
12 of 71 semantic tests passed |
Pass fib test 4 of 17 codegen tests passed
Reading a string involves: - calling a system process to store it in a Buffer. - Calculate the length of read string - Allocate space in memory to store the str value. - Copy bytes from read buffer to allocated memory - Allocate a COOL String instance - Initialize the String with proper values
Since COOL methods must begin lower case
No description provided.