plaidgroup / plaid-lang

The Plaid Programming Language Tools
11 stars 1 forks source link

CodeGen fails for semicolons in string literals #52

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Any use of a semicolon character in a string literal will cause the code 
generator to produce incorrect code.

method main() {
    java.lang.System.out.println("Independent clause; related independent clause.");
}

This test casehas been pushed to the repo.

What is the expected output? What do you see instead?
It should produce the following code:
vAr4101$plaid = plaid.runtime.Util.string("Independent clause; related 
independent clause.");

Instead, it puts a newline after the semicolon:
vAr4101$plaid = plaid.runtime.Util.string("Independent clause;
                 related independent clause.");

Original issue reported on code.google.com by rubila...@gmail.com on 27 Jul 2010 at 8:46

GoogleCodeExporter commented 9 years ago
fixed

Original comment by Karl.Na...@gmail.com on 27 Jul 2010 at 9:49