diff lwasm/pragma.c @ 399:6153cb49403c

Initial commit of pragma newsource pragma newsource enables a source code variant as follows: 1. no line numbers 2. no implied comments at the end of lines 3. all comments must be introduced by a comment character 4. spaces are allowed in operands (4) is not quite complete. This commit handles "operandless" instructions (anything where the parser calls skip_operand()) and expression parsing.
author William Astle <lost@l-w.ca>
date Tue, 13 Oct 2015 23:38:02 -0600
parents 4fd16faa4d93
children c501b3ce39c8
line wrap: on
line diff
--- a/lwasm/pragma.c	Sun Oct 11 09:31:06 2015 -0600
+++ b/lwasm/pragma.c	Tue Oct 13 23:38:02 2015 -0600
@@ -72,6 +72,8 @@
 	{ "m80ext", "nom80ext", PRAGMA_M80EXT },
 	{ "6809conv", "no6809conv", PRAGMA_6809CONV },
 	{ "6309conv", "no6309conv", PRAGMA_6309CONV },
+	{ "newsource", "nonewsource", PRAGMA_NEWSOURCE },
+	{ "nooldsource", "oldsource", PRAGMA_NEWSOURCE },
 	{ 0, 0, 0 }
 };