diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2014-12-02 21:51:13 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2014-12-02 21:51:13 (GMT) |
commit | c72f4d81bff9d6b8fa2317823a86742cb59e0544 (patch) | |
tree | dfa7dd5578eb5c347a6930c6578a5c7f27d2b2d5 /tools/d2c/d2c_tok.l | |
parent | 5b5b36dc862a3c7bcfa3e0db74efcf2806988706 (diff) |
Extended the compiler by allowing more than one type of Thumb.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@431 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'tools/d2c/d2c_tok.l')
-rw-r--r-- | tools/d2c/d2c_tok.l | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/d2c/d2c_tok.l b/tools/d2c/d2c_tok.l index 4d31783..e40f10d 100644 --- a/tools/d2c/d2c_tok.l +++ b/tools/d2c/d2c_tok.l @@ -65,8 +65,7 @@ void free_flex_memory(void) ; <encoding>[ ] { } <encoding>"(" { BEGIN(encoding_type); } -<encoding_type>"T" { return THUMB; } -<encoding_type>"A" { return ARCH; } +<encoding_type>[A-Za-z] { d2c_lval.string = strdup(yytext); return TYPE; } <encoding_type>[0-9] { d2c_lval.integer = atoi(yytext); return NUMBER; } <encoding_type>")" { BEGIN(encoding); } |