Changeset 1e97287 for src/AST/porting.md


Ignore:
Timestamp:
May 15, 2019, 4:04:26 PM (5 years ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
89c2f7c9
Parents:
23f99e1
Message:

Re-created the statement section of the AST.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/porting.md

    r23f99e1 r1e97287  
    109109* `get_statement()` exclusively used for code location, replaced with `CodeLocation` field
    110110
     111`CaseStmt`
     112* `_isDefault` has been removed
     113  * `isDefault` calculates value from `cond`
     114  * default may not have a condition. I believe case (!default) requires a condition.
     115
     116`BranchStmt`
     117* `Type` -> `Kind` and `type` -> `kind`
     118* Constructors no longer throw SemanticErrorException:
     119  * `label` constructor claims it is now considered a syntax error, replaced with assert.
     120  * `computedTarget` constructor assumes `Goto`, other check would have SegFaulted.
     121
     122`TryStmt`
     123* `block` -> `body` and `finallyBlock` -> `finally`
     124
     125`FinallyStmt`
     126* `block` -> `body`
     127
    111128`CompoundStmt`
    112129* **TODO** port copy operator
Note: See TracChangeset for help on using the changeset viewer.