gnupic: Thread: Re: parse error when including a .inc in CBLOCK


[<<] [<] Page 1 of 1 [>] [>>]
Subject: Re: parse error when including a .inc in CBLOCK
From: Craig Franklin ####@####.####
Date: 15 Mar 2003 05:17:40 -0000
Message-Id: <3E72B4AC.EB35D456@attbi.com>

The preprocessor is integrated with the lexer/parser.  In most cases it
is a simple text substitution, but not always.

I believe mpasm won't like it either.  It will generate an illegal label
error on the #include.  If I am incorrect, please submit a bug report to
sourceforge.

Thanks.

Yann Gouy wrote:
> 
> Hi,
> 
> I have splitted a package in 2 parts: one with the variables
> ("package.var.inc") and the second with macros ("package.macro.inc").
> 
> here is an extract of what I want to do:
> 
> >>>>>>>>>>>
> 
> CBLOCK 0x20
> 
> TIME:2
> 
> include "package.var.inc"
> 
> ENDC
> 
> include "package.macro.inc
> 
> <<<<<<<<<<<
> 
> on the first include, I got a parse error using gpasm 0.11.0 or 0.10.6
> I believed that the include processing was just like in C ("basic string
> replacement").
> 
> if someone could help me, please do it!
> 
>         Yann
> 
> ___________________________________________________________
> 
> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
> 
> Yahoo! Mail : http://fr.mail.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####
[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.