NAME
CPU::Z80::Assembler::Preprocessor - Preprocessor for the Z80 assembler
SYNOPSIS
use CPU::Z80::Assembler::Preprocessor;
open($fh, $file1) or die;
my $stream = z80preprocessor("#include 'file2'\n", sub {<$fh>});
my $line = $stream->get;
DESCRIPTION
This module provides a preprocessor to handle file includes. It is called by CPU::Z80::Assembler::Lexer to retrieve each line of input to scan.
It is a simple wrapper around Asm::Preproc - please look up to check for preprocessor syntax.
EXPORTS
By default the 'z80preprocessor' subroutine is exported.
FUNCTIONS
z80preprocessor
This takes as parameter a list of either text lines to parse, or iterators that return text lines to parse.
The result is a Asm::Preproc::Stream of Asm::Preproc::Line objects that contain each of the input lines of the input.
PREPROCESSING
See Asm::Preproc.
BUGS and FEEDBACK
See CPU::Z80::Assembler.
SEE ALSO
CPU::Z80::Assembler CPU::Z80::Assembler::Lexer Asm::Preproc::Stream Asm::Preproc::Line
AUTHORS, COPYRIGHT and LICENCE
See CPU::Z80::Assembler.