-Subproject commit b0133e031a5d1419f58e8df36cc5eb56624089a6
+Subproject commit f54599839bb91b6219b4c0a5063eed0380b880a5
; Start User Defined Code
;------------------------------------------------------------------------------
+; Potential implementation of prototype objects
+;(define Proto
+; (list (make-hash-table)))
+;
+;(define (proto-clone p)
+; (list (make-hash-table) p))
+;
+;(define (proto? p))
+;(define (proto-value p))
+;(define (proto-member name))
+
if(!isDigit())
{
Exception ex(line,column);
- ex.setMessage("Missing fractional portion of floating point number.");
+ ex << "Missing fractional portion of floating point number.";
throw ex;
}
else
{
Exception ex(line,column);
- ex.setMessage("Invalid character literal.");
+ ex << "Invalid character literal.";
throw ex;
}
match('\'');
if( tok.type() == EOF)
{
- throw Exception(line,column);
+ Exception ex(line,column);
+ ex << "Unrecognized token";
+ throw ex;
}
}
}
else
{
- throw Exception(line,column);
+ Exception ex(line,column);
+ ex << "Unexpected token";
+ throw ex;
}
}
break;
default:
- throw Exception(lookaheadToken(1).line(), lookaheadToken(1).column());
+ throw Exception( lookaheadToken(1) );
break;
}
break;
default:
- Token& tok = lookaheadToken(1);
- ostringstream oss;
- oss << "Expected literal type, recieved type " << tok.type() << ".";
- Exception ex( tok.line(), tok.column() );
- ex.setMessage(oss.str());
+ Exception ex( lookaheadToken(1) );
+ ex << "Expected literal type, recieved type " << lookaheadToken(1).type() << ".";
throw ex;
}
}
}
else
{
- throw Exception(lookaheadToken(1).line(), lookaheadToken(1).column());
+ throw Exception( lookaheadToken(1) );
}
}
while( lookaheadType(1) == ID );