mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-04 21:30:49 +00:00
Lexer Support for Multidefs
Add keyword support for multidefs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141231 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bda579b8ba
commit
b9c29eaa3d
@ -228,6 +228,7 @@ tgtok::TokKind TGLexer::LexIdentifier() {
|
||||
|
||||
if (Len == 5 && !memcmp(IdentStart, "class", 5)) return tgtok::Class;
|
||||
if (Len == 3 && !memcmp(IdentStart, "def", 3)) return tgtok::Def;
|
||||
if (Len == 8 && !memcmp(IdentStart, "multidef", 3)) return tgtok::MultiDef;
|
||||
if (Len == 4 && !memcmp(IdentStart, "defm", 4)) return tgtok::Defm;
|
||||
if (Len == 10 && !memcmp(IdentStart, "multiclass", 10))
|
||||
return tgtok::MultiClass;
|
||||
|
@ -41,7 +41,7 @@ namespace tgtok {
|
||||
equal, question, // = ?
|
||||
|
||||
// Keywords.
|
||||
Bit, Bits, Class, Code, Dag, Def, Defm, Field, In, Int, Let, List,
|
||||
Bit, Bits, Class, Code, Dag, Def, MultiDef, Defm, Field, In, Int, Let, List,
|
||||
MultiClass, String,
|
||||
|
||||
// !keywords.
|
||||
|
Loading…
Reference in New Issue
Block a user