"
or '
).If the last read byte is a delimiter, return the delimiter and
read the next byte. Else, return -1
.
# Expect a value delimiter (`"` or `'`).
#
# If the last read byte is a delimiter, return the delimiter and
# read the next byte. Else, return `-1`.
fun expect_delimiter: Int do
if accept('"') then
return '"'.code_point
else if accept('\'') then
return '\''.code_point
else
fire_unexpected_char(". Expecting `\"` or `'`")
return -1
end
end
lib/saxophonit/lexer.nit:46,2--59,4