Changes between Version 22 and Version 23 of C to tass-AST xml


Ignore:
Timestamp:
04/17/11 15:46:35 (15 years ago)
Author:
Stephen Siegel
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • C to tass-AST xml

    v22 v23  
    4444   * return
    4545   * no-op
    46    * compound ({...})
     46   * block ({...})
    4747      * variable declaration section
    4848      * sequence of statements
     
    5050      * with possible initialization expression
    5151      * possible array extents information and other information modifying type?
    52       * static, ...?
     52      * storage class: automatic, static, extern, ...?
    5353   * expressions (may have side-effects)
    5454      * literals (including named literals): integers, reals, strings, chars
    5555      * 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)
    5761      * assignments: x++, x--, ++x, --x
    58       * bit-wise operators?
    59       * &,* (pointer operations)
    60       * cast-to-t
    61       * a[i] (array index)
    62       * x.a (record navigation)
    6362      * function invocation f(x)
    64       * initializers
     63      * initializers (special kind of expression used to initialize variables in their decl)
    6564      * sizeof (type, expression, or string literal)
    6665      * startOf(a): &a[0] -- that is the Cil way of converting an array to pointer to first element
     
    8281
    8382
     83Modules
     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
    8487
    8588== C Example ==