Changes between Version 22 and Version 23 of C to tass-AST xml
- Timestamp:
- 04/17/11 15:46:35 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
C to tass-AST xml
v22 v23 44 44 * return 45 45 * no-op 46 * compound({...})46 * block ({...}) 47 47 * variable declaration section 48 48 * sequence of statements … … 50 50 * with possible initialization expression 51 51 * possible array extents information and other information modifying type? 52 * st atic, ...?52 * storage class: automatic, static, extern, ...? 53 53 * expressions (may have side-effects) 54 54 * literals (including named literals): integers, reals, strings, chars 55 55 * variable 56 * operators: +,-,*,/,%,<,<=,>,>=,==,!=,!,&&, | |, (x?y:z), bitand, bitor, bitxor, lshift, rshift 56 * operators 57 * +,-,*,/,%,<,<=,>,>=,==,!=,!,&&, | |, (x?y:z), bitand, bitor, bitxor, lshift, rshift, & (address-of), * (dereference) 58 * cast-to-t 59 * a[i] (array index) 60 * x.a (record navigation) 57 61 * assignments: x++, x--, ++x, --x 58 * bit-wise operators?59 * &,* (pointer operations)60 * cast-to-t61 * a[i] (array index)62 * x.a (record navigation)63 62 * function invocation f(x) 64 * initializers 63 * initializers (special kind of expression used to initialize variables in their decl) 65 64 * sizeof (type, expression, or string literal) 66 65 * startOf(a): &a[0] -- that is the Cil way of converting an array to pointer to first element … … 82 81 83 82 83 Modules 84 * CPreProcessor: an ANTLR-generated parser that takes source file and produces token stream, applies pre-processing rules, produces new token stream 85 * CParser: an ANTRL-generated parser that takes stream of sourced tokens from pre-processor and produces AST stage 0 86 * AST, ASTNode 84 87 85 88 == C Example ==
