diff options
author | Robert Iannucci <robbie@rail.com> | 2012-09-27 23:37:37 (GMT) |
---|---|---|
committer | Robert Iannucci <robbie@rail.com> | 2012-11-10 05:55:01 (GMT) |
commit | a84d93cde00febb44be7918f6a44dc658d83d155 (patch) | |
tree | 2130034dbb568278163c56a09d9a00150f645caf /src/lexer.in.cc | |
parent | bd0ad99e7549386a8bb51e8f445312fe5c7a6679 (diff) | |
download | Ninja-a84d93cde00febb44be7918f6a44dc658d83d155.zip Ninja-a84d93cde00febb44be7918f6a44dc658d83d155.tar.gz Ninja-a84d93cde00febb44be7918f6a44dc658d83d155.tar.bz2 |
block parse method done
Diffstat (limited to 'src/lexer.in.cc')
-rw-r--r-- | src/lexer.in.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lexer.in.cc b/src/lexer.in.cc index 7ae9c61..93d5540 100644 --- a/src/lexer.in.cc +++ b/src/lexer.in.cc @@ -82,6 +82,7 @@ const char* Lexer::TokenName(Token t) { case NEWLINE: return "newline"; case PIPE2: return "'||'"; case PIPE: return "'|'"; + case POOL: return "'pool'"; case RULE: return "'rule'"; case SUBNINJA: return "'subninja'"; case TEOF: return "eof"; @@ -135,6 +136,7 @@ Lexer::Token Lexer::ReadToken() { [ ]*[\n] { token = NEWLINE; break; } [ ]+ { token = INDENT; break; } "build" { token = BUILD; break; } + "pool" { token = POOL; break; } "rule" { token = RULE; break; } "default" { token = DEFAULT; break; } "=" { token = EQUALS; break; } |