Create a line parser for Preprocess keywords. #7

Closed
opened 2018-12-13 19:22:54 +01:00 by Lerking · 0 comments
Lerking commented 2018-12-13 19:22:54 +01:00 (Migrated from github.com)

The PREPROCESS parser returns the assembly equivalent PREPROCESS directive.

  • ELEMENT_TYPE_INCLUDE -> process data ('<includefile*.h>) returns %include "includefile.inc"
  • ELEMENT_TYPE_DEFINE -> process macro - returns %define macro
  • ELEMENT_TYPE_UNDEF -> process macro - returns %undef macro
  • ELEMENT_TYPE_IFDEF -> process macro - returns %ifdef macro
  • ELEMENT_TYPE_IFNDEF -> process macro - returns %ifndef macro
  • ELEMENT_TYPE_IF -> process statement - returns %if statement
  • ELEMENT_TYPE_ELSE -> returns %else
  • ELEMENT_TYPE_ELIF -> process statement - returns %elif statement
  • ELEMENT_TYPE_ENDIF -> returns %endif
  • ELEMENT_TYPE_ERROR -> returns %error
  • ELEMENT_TYPE_PRAGMA -> process macro - returns %pragma macro
  • ELEMENT_TYPE_COMMENT_START -> returns ";"
  • ELEMENT_TYPE_COMMENT_MULTILINE -> returns ";"
  • ELEMENT_TYPE_COMMENT_END -> returns "\n"
The PREPROCESS parser returns the assembly equivalent PREPROCESS directive. - [x] ELEMENT_TYPE_INCLUDE -> process data ('<includefile*.h>) returns **%include "includefile.inc"** - [x] ELEMENT_TYPE_DEFINE -> process macro - returns **%define macro** - [x] ELEMENT_TYPE_UNDEF -> process macro - returns **%undef macro** - [x] ELEMENT_TYPE_IFDEF -> process macro - returns **%ifdef macro** - [x] ELEMENT_TYPE_IFNDEF -> process macro - returns **%ifndef macro** - [x] ELEMENT_TYPE_IF -> process statement - returns **%if statement** - [x] ELEMENT_TYPE_ELSE -> returns **%else** - [x] ELEMENT_TYPE_ELIF -> process statement - returns **%elif statement** - [x] ELEMENT_TYPE_ENDIF -> returns **%endif** - [x] ELEMENT_TYPE_ERROR -> returns **%error** - [x] ELEMENT_TYPE_PRAGMA -> process macro - returns **%pragma macro** - [x] ELEMENT_TYPE_COMMENT_START -> returns **";"** - [x] ELEMENT_TYPE_COMMENT_MULTILINE -> returns **";"** - [x] ELEMENT_TYPE_COMMENT_END -> returns **"\n"**
Sign in to join this conversation.