MESSAGE
DATE | 2016-04-26 |
FROM | Ruben Safir
|
SUBJECT | Subject: [Hangout-NYLXS] error: unclosed character literal
|
TypeCheckingVisitor.java:61: error: unclosed character literal
if(op == '>' || op == '<' || op == '<=' || op == '>=' ){
The editor also indicates a parsing problem in the Java but I am at a loss.
'<' seems to work
This is the code snippet
//Comparison Operators
¦if(op == '>' || op == '<' || op == '<=' || op == '>=' ){
¦if( (leftType == Type.INT && rightType == Type.INT) || (leftType== Type.FLOAT || rightType== Type.FLOAT)|| (leftType == Type.INT && rightType == Type.FLOAT)|| (leftType == Type.FLOAT && rightType == Type.INT ) ){
¦return trace(ctx, Type.BOOL);
¦}
¦ ¦ ¦return typeMismatch(ctx, leftType, rightType);
¦}
--
So many immigrant groups have swept through our town
that Brooklyn, like Atlantis, reaches mythological
proportions in the mind of the world - RI Safir 1998
http://www.mrbrklyn.com
DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
http://www.nylxs.com - Leadership Development in Free Software
http://www2.mrbrklyn.com/resources - Unpublished Archive
http://www.coinhangout.com - coins!
http://www.brooklyn-living.com
Being so tracked is for FARM ANIMALS and and extermination camps,
but incompatible with living as a free human being. -RI Safir 2013
_______________________________________________
hangout mailing list
hangout-at-nylxs.com
http://www.nylxs.com/
|
|