Expect a Name tokn.

Append the parsed name to buffer.

Property definitions

saxophonit $ XophonLexer :: expect_name
	# Expect a `Name` tokn.
	#
	# Append the parsed name to `buffer`.
	fun expect_name(buffer: Buffer): Bool do
		if not is_name_start_char then
			return fire_unexpected_char(" at the beginning of a name")
		end
		buffer.chars.push(last_char.code_point)
		read_char
		while is_name_char do
			buffer.chars.push(last_char.code_point)
			read_char
		end
		return true
	end
lib/saxophonit/lexer.nit:146,2--160,4