Closed tangent-vector closed 7 years ago
The preprocessor is certainly not 100% complete, but it handles enough to be worth checking in.
Implemented
#if
defined(someName)
#ifdef
#ifndef
#else
#endif
#include
using
#define
#undef
#warning
#error
#line
#pragma
Not implemented:
#include <foo.h>
#version
The preprocessor is certainly not 100% complete, but it handles enough to be worth checking in.
Implemented
#if
including expression parsing anddefined(someName)
#ifdef
and#ifndef
#else
and#endif
#include
using
#define
macros#undef
#warning
and#error
produce a warning/error respectively, but don't parse the user-defined message#line
gets syntax checked, but ignored#pragma
gets ignoredNot implemented:
#include <foo.h>
style. This requires custom work in the lexer.#warning
and#error
#version
directive#line
directives. This requires interaction with the lexer.#pragma
directives and/or leave them for the parser.