comparison trunk/src/Lexer.d @ 3:4bbce78bfb1e

- Added TOK enum. - Added two methods to Lexer class.
author aziz
date Thu, 21 Jun 2007 18:36:04 +0000
parents 81c6cc33f5c8
children 92df59b1ec4a
comparison
equal deleted inserted replaced
2:81c6cc33f5c8 3:4bbce78bfb1e
1 /++ 1 /++
2 Author: Aziz Köksal 2 Author: Aziz Köksal
3 License: GPL2 3 License: GPL2
4 +/ 4 +/
5 module Lexer; 5 module Lexer;
6 import Token;
6 import std.stdio; 7 import std.stdio;
7 8
8 /// ASCII character properties table. 9 /// ASCII character properties table.
9 static const int ptable[256] = [ 10 static const int ptable[256] = [
10 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
62 } 63 }
63 +/ 64 +/
64 65
65 class Lexer 66 class Lexer
66 { 67 {
68 Token t;
69 public void scan(ref Token t)
70 {
67 71
72 }
73 public TOK nextToken()
74 {
75 return TOK.max;
76 }
68 } 77 }