commit 0625382a94acdfd25973348686a73d6b1d3c7d3e
parent 201f5c8b17d74fbde6174af15532760883853b33
Author: Rayslava <rayslava@gmail.com>
Date: Thu, 5 Apr 2012 21:13:35 +0400
Added ability to compile in lonely symbols as numeric constants
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/assembler.c b/assembler.c
@@ -192,6 +192,11 @@ nextline:
return n;
return tSTRING;
}
+ if ((c == '\'') && (*(lineptr+1) == '\'')) {
+ tnumber = (u16) (*lineptr++);
+ lineptr++;
+ return tNUMBER;
+ }
die("illegal character '%c'", c);
return tEOF;
}