comparison trunk/src/dil/lexer/Token.d @ 681:95a3c28c0f64

Renamed AsmStatement->AsmBlockStatement and AsnInstruction->AsmStatement.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Sat, 19 Jan 2008 00:10:57 +0100
parents ff6971637f88
children 00f872d949ea
comparison
equal deleted inserted replaced
680:6b3e397229c5 681:95a3c28c0f64
179 bool isStatementStart() 179 bool isStatementStart()
180 { 180 {
181 return isStatementStartToken(kind); 181 return isStatementStartToken(kind);
182 } 182 }
183 183
184 /// Returns true if this token starts an AsmInstruction. 184 /// Returns true if this token starts an AsmStatement.
185 bool isAsmInstructionStart() 185 bool isAsmStatementStart()
186 { 186 {
187 return isAsmInstructionStartToken(kind); 187 return isAsmStatementStartToken(kind);
188 } 188 }
189 189
190 int opEquals(TOK kind2) 190 int opEquals(TOK kind2)
191 { 191 {
192 return kind == kind2; 192 return kind == kind2;
313 } 313 }
314 } 314 }
315 } 315 }
316 } 316 }
317 317
318 /// Stores data about newlines. 318 /// Data associated with newline tokens.
319 struct NewlineData 319 struct NewlineData
320 { 320 {
321 struct FilePaths 321 struct FilePaths
322 { 322 {
323 char[] oriPath; /// Original path to the source text. 323 char[] oriPath; /// Original path to the source text.
374 return true; 374 return true;
375 } 375 }
376 return false; 376 return false;
377 } 377 }
378 378
379 /// Returns true if this token starts an AsmInstruction. 379 /// Returns true if this token starts an AsmStatement.
380 bool isAsmInstructionStartToken(TOK tok) 380 bool isAsmStatementStartToken(TOK tok)
381 { 381 {
382 switch(tok) 382 switch(tok)
383 { 383 {
384 alias TOK T; 384 alias TOK T;
385 case T.In, T.Int, T.Out, T.Identifier, T.Align, T.Semicolon: 385 case T.In, T.Int, T.Out, T.Identifier, T.Align, T.Semicolon: