From 970260bf0f8b9cdfd46c6956c14e267788ffdc0f Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Tue, 16 Aug 2016 15:28:45 +0100 Subject: Reserved keywords update (#833) * Reserve abstract, interface and payable keywords * Keywords as and using aren't reserved anymore - they're used * Reserve the static keyword --- libsolidity/parsing/Token.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libsolidity/parsing/Token.h b/libsolidity/parsing/Token.h index 5ac7aedd..f4de74c7 100644 --- a/libsolidity/parsing/Token.h +++ b/libsolidity/parsing/Token.h @@ -141,6 +141,7 @@ namespace solidity \ /* Keywords */ \ K(Anonymous, "anonymous", 0) \ + K(As, "as", 0) \ K(Assembly, "assembly", 0) \ K(Break, "break", 0) \ K(Const, "constant", 0) \ @@ -171,6 +172,7 @@ namespace solidity K(Storage, "storage", 0) \ K(Struct, "struct", 0) \ K(Throw, "throw", 0) \ + K(Using, "using", 0) \ K(Var, "var", 0) \ K(While, "while", 0) \ \ @@ -214,22 +216,24 @@ namespace solidity T(Identifier, NULL, 0) \ \ /* Keywords reserved for future use. */ \ + K(Abstract, "abstract", 0) \ K(After, "after", 0) \ - K(As, "as", 0) \ K(Case, "case", 0) \ K(Catch, "catch", 0) \ K(Final, "final", 0) \ K(In, "in", 0) \ K(Inline, "inline", 0) \ + K(Interface, "interface", 0) \ K(Let, "let", 0) \ K(Match, "match", 0) \ K(Of, "of", 0) \ + K(Payable, "payable", 0) \ K(Relocatable, "relocatable", 0) \ + K(Static, "static", 0) \ K(Switch, "switch", 0) \ K(Try, "try", 0) \ K(Type, "type", 0) \ K(TypeOf, "typeof", 0) \ - K(Using, "using", 0) \ /* Illegal token - not able to scan. */ \ T(Illegal, "ILLEGAL", 0) \ \ -- cgit