============================================
|
|
Include directives
|
|
============================================
|
|
|
|
#include "some/path.h"
|
|
#include <stdint.h>
|
|
|
|
---
|
|
|
|
(translation_unit
|
|
(preproc_include (string_literal))
|
|
(preproc_include (system_lib_string)))
|
|
|
|
============================================
|
|
Defines
|
|
============================================
|
|
|
|
#define SIZE 1024
|
|
|
|
#define SOMETHING \
|
|
x + \
|
|
y
|
|
|
|
---
|
|
|
|
(translation_unit
|
|
(preproc_define (identifier))
|
|
(preproc_define (identifier)))
|
|
|
|
============================================
|
|
Ifdefs
|
|
============================================
|
|
|
|
#ifndef SOMETHING
|
|
int x;
|
|
#endif
|
|
|
|
#ifdef SOMETHING_ELSE
|
|
#else
|
|
#endif
|
|
|
|
---
|
|
|
|
(translation_unit
|
|
(preproc_ifndef (identifier))
|
|
(declaration (identifier) (identifier))
|
|
(preproc_endif)
|
|
(preproc_ifdef (identifier))
|
|
(preproc_else)
|
|
(preproc_endif))
|