Add session, span tracking, error reporting, beginning of a function to parse an item to rustc.

This commit is contained in:
Graydon Hoare 2010-09-01 13:24:14 -07:00
parent b90e6b93c1
commit eb90be7798
7 changed files with 165 additions and 35 deletions

View file

@ -1,3 +1,7 @@
import std._uint;
type pos = rec(uint line, uint col);
type span = rec(str filename, pos lo, pos hi);
type ty_mach = tag( ty_i8(), ty_i16(), ty_i32(), ty_i64(),
ty_u8(), ty_u16(), ty_u32(), ty_u64(),