yasm_parser_module Struct Reference

YASM parser module interface. More...

#include <parser.h>


Data Fields

const char * name
 One-line description of the parser.
const char * keyword
 Keyword used to select parser on the command line.
const char ** preproc_keywords
 NULL-terminated list of preprocessors that are valid to use with this parser.
const char * default_preproc_keyword
 Default preprocessor.
const yasm_stdmacstdmacs
 NULL-terminated list of standard macro lookups.
void(* do_parse )(yasm_object *object, yasm_preproc *pp, int save_input, yasm_linemap *linemap, yasm_errwarns *errwarns)
 Parse a source file into an object.


Detailed Description

YASM parser module interface.

The "front end" of the assembler.

Definition at line 38 of file parser.h.


Field Documentation

const char** yasm_parser_module::preproc_keywords

NULL-terminated list of preprocessors that are valid to use with this parser.

The raw preprocessor (raw_preproc) should always be in this list so it's always possible to have no preprocessing done.

Definition at line 49 of file parser.h.

const char* yasm_parser_module::default_preproc_keyword

Default preprocessor.

Definition at line 52 of file parser.h.

const yasm_stdmac* yasm_parser_module::stdmacs

NULL-terminated list of standard macro lookups.

NULL if none.

Definition at line 55 of file parser.h.

void(* yasm_parser_module::do_parse)(yasm_object *object, yasm_preproc *pp, int save_input, yasm_linemap *linemap, yasm_errwarns *errwarns)

Parse a source file into an object.

Parameters:
object object to parse into (already created)
pp preprocessor
save_input nonzero if the parser should save the original lines of source into the object's linemap (via yasm_linemap_add_data()).
errwarns error/warning set
Note:
Parse errors and warnings are stored into errwarns.


The documentation for this struct was generated from the following file:
Generated on Sat Sep 6 01:23:37 2008 for libyasm by  doxygen 1.5.2