Differences From Artifact [165f2920b68bc5f6]:
- File
polemy/lex.d
- 2010-11-21 11:11:49 - part of checkin [2bdfb8a182] on branch trunk - moved build sciprt for documents into Poseidon environment (user: kinaba) [annotate]
To Artifact [ad028a2a26b6c7bc]:
- File
polemy/lex.d
- 2010-11-21 14:24:33 - part of checkin [3995a5eb6a] on branch trunk - added iikagen pattern match (user: kinaba) [annotate]
109 this.current = (current is null ? readNext() : current); 109 this.current = (current is null ? readNext() : current);
110 } 110 }
111 111
112 public static 112 public static
113 { 113 {
114 bool isSpace (dchar c) { return std.ctype.isspace(c)!=0; } 114 bool isSpace (dchar c) { return std.ctype.isspace(c)!=0; }
115 bool isSymbol (dchar c) { return 0x21<=c && c<=0x7f && !std.cty 115 bool isSymbol (dchar c) { return 0x21<=c && c<=0x7f && !std.cty
116 bool isSSymbol (dchar c) { return "()[]{};@".canFind(c); } | 116 bool isSSymbol (dchar c) { return "()[]{};,@".canFind(c); }
117 bool isMSymbol (dchar c) { return isSymbol(c) && !isSSymbol(c) & 117 bool isMSymbol (dchar c) { return isSymbol(c) && !isSSymbol(c) &
118 bool isLetter (dchar c) { return !isSpace(c) && !isSymbol(c); } 118 bool isLetter (dchar c) { return !isSpace(c) && !isSymbol(c); }
119 } 119 }
120 120
121 string readQuoted(const LexPosition pos){char[] buf; return readQuoted(p 121 string readQuoted(const LexPosition pos){char[] buf; return readQuoted(p
122 string readQuoted(const LexPosition pos, ref char[] buf) 122 string readQuoted(const LexPosition pos, ref char[] buf)
123 { 123 {