|
|
@ -94,14 +94,16 @@ namespace Compiler
|
|
|
|
|
|
|
|
|
|
|
|
bool FileParser::parseSpecial (int code, const TokenLoc& loc, Scanner& scanner)
|
|
|
|
bool FileParser::parseSpecial (int code, const TokenLoc& loc, Scanner& scanner)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (code==Scanner::S_newline)
|
|
|
|
// Ignore any junk special characters
|
|
|
|
{
|
|
|
|
|
|
|
|
if (mState == BeginState)
|
|
|
|
if (mState == BeginState)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// ignore empty lines
|
|
|
|
if (code != Scanner::S_newline)
|
|
|
|
|
|
|
|
reportWarning ("Ignoring stray special character before begin statement", loc);
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (code==Scanner::S_newline)
|
|
|
|
|
|
|
|
{
|
|
|
|
if (mState==BeginCompleteState)
|
|
|
|
if (mState==BeginCompleteState)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// parse the script body
|
|
|
|
// parse the script body
|
|
|
|