Skip to content
This repository was archived by the owner on Feb 26, 2018. It is now read-only.
This repository was archived by the owner on Feb 26, 2018. It is now read-only.

Type and Symbol checking #4

@at15

Description

@at15
  • Symbol checking
    • recover from duplicate declaration
    • recover from undefined identifier
      • use rhs type and put it into symbol table f97ab95
  • Type checking
  • Recovery principle
    • log recovery in trace f7e6f32
    • if incompatible happens when declare or assign, we choose to keep the original type instead of the type in rhs
      • int a = "s", a is still int
      • int a = 1; a = "s", a is still int
    • if undefined identifier happen for assign, we use the type of rhs
      • a = 1, a is int, this is actually type induction ...
  • String support 02dfa0e

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions