Mercurial > projects > dil
view trunk/src/Token.d @ 4:92df59b1ec4a
- Started implementation of scan().
author | aziz |
---|---|
date | Fri, 22 Jun 2007 14:12:02 +0000 |
parents | 4bbce78bfb1e |
children | 5d6968cc751e |
line wrap: on
line source
/++ Author: Aziz Köksal License: GPL2 +/ module Token; struct Position { size_t loc; size_t col; } enum TOK { Identifier, Whitespace, Comment, EOF } struct Token { TOK type; Position pos; char* start; char* end; union { char[] str; float f; double d; } }