|
|
|
|
|
by JLCarveth
1265 days ago
|
|
I tried it for my (incomplete) compiler project[0], and the results are quite funny: > This program prints a large string of text to the console. It does this by using a String variable called myLongString, which is initialized with a long string of text. The program begins with the line "program LargeString {" and ends with the line "}". Inside the program, there is a comment that reads "Now let's try a comment". This comment is not necessary for the program to work, but it helps to explain what the program does. The program then uses the write() function, which is a function that prints a given string to the console, to print the large string of text. It seems as though its looking at the sample code files used for testing rather than the actual compiler codebase. [0] - https://github.com/JLCarveth/zpl-compiler |
|