summaryrefslogtreecommitdiff
path: root/ecomp-c/asm-i386.c
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2020-06-25 14:25:55 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2020-06-25 14:25:55 +0200
commited39180cdabfefb378c6954648f86807686b4ca9 (patch)
treea22db9bae2e953b0dfc47214fa58c1234cccf663 /ecomp-c/asm-i386.c
parent54f779b72dfa8a06ef8766db6f97606cb209b80e (diff)
downloadcompilertests-ed39180cdabfefb378c6954648f86807686b4ca9.tar.gz
compilertests-ed39180cdabfefb378c6954648f86807686b4ca9.tar.bz2
another example with integer arrays
asm-i386: added parsing of empty lines ec: array dimensions can be const expressions now (simple const expression being a number or a constant)
Diffstat (limited to 'ecomp-c/asm-i386.c')
-rw-r--r--ecomp-c/asm-i386.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ecomp-c/asm-i386.c b/ecomp-c/asm-i386.c
index 9dc03a1..743d39a 100644
--- a/ecomp-c/asm-i386.c
+++ b/ecomp-c/asm-i386.c
@@ -1194,6 +1194,7 @@ static OpcodeInfo *parseDirective( void )
case S_org:
opcode_info = parseOrg( );
break;
+
case S_ident:
if( peekSym( ) == S_colon ) {
symbol = parseLabel( );
@@ -1211,6 +1212,10 @@ static OpcodeInfo *parseDirective( void )
last_label = NULL;
}
break;
+
+ case S_newline:
+ break;
+
default:
Abort( "Parse error at '%s'\n", symname[sym] );
}