Changes between Version 1 and Version 2 of AST
- Timestamp:
- 04/18/11 12:36:54 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AST
v1 v2 98 98 Stages 99 99 1. The input source file(s) are pre-processed, creating a stream of tokens with source information 100 1. #include 101 1. #define X 100 /* object-like macro */ 102 1. #define min(X,Y) (X<=Y ? X : Y) /* function-like macro */ 103 1. #ifdef...#endif 100 104 1. The token stream is parsed to produce an AST in which all variables, types, etc., are represented simply as identifiers 101 105 1. The pragma strings are parsed and processed, and those AST nodes are filled out
