Expose hex literal to the Yul parser

This allows nicer error messages.
This commit is contained in:
Alex Beregszaszi
2020-08-28 19:34:52 +01:00
parent 26a76c18d4
commit 7ef9591e64
12 changed files with 18 additions and 18 deletions
@@ -6,4 +6,4 @@ contract C {
}
}
// ----
// ParserError 6913: (86-87): Call or assignment expected.
// ParserError 3772: (72-81): Hex literals are not valid in this context.
@@ -6,4 +6,4 @@ contract C {
}
}
// ----
// ParserError 2314: (70-76): Expected ',' but got 'StringLiteral'
// ParserError 3772: (67-76): Hex literals are not valid in this context.
@@ -8,4 +8,4 @@ contract C {
}
}
// ----
// ParserError 4805: (95-99): Literal expected.
// ParserError 3772: (92-99): Hex literals are not valid in this context.
@@ -21,7 +21,7 @@ contract C {
let fallback := 1
// for is a Yul keyword
// function is a Yul keyword
let hex := 1
// hex is a Yul keyword
// if is a Yul keyword
let indexed := 1
let interface := 1
@@ -110,4 +110,4 @@ contract C {
}
}
// ----
// Warning 5740: (944-2157): Unreachable code.
// Warning 5740: (955-2168): Unreachable code.