Commit 6f39dba7 authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter

support real literals with exponent

2007-09-15  Juerg Billeter  <j@bitron.ch>

	* vala/scanner.l: support real literals with exponent

svn path=/trunk/; revision=607
parent 3ce59e20
2007-09-15 Jürg Billeter <j@bitron.ch>
* vala/scanner.l: support real literals with exponent
2007-09-14 Jürg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: deny assignment to instance members
......
......@@ -43,11 +43,13 @@ static gboolean file_comment = FALSE;
space [ \t\n]*
ident [[:alnum:]_]+
decimal_integer_literal (0|[1-9][[:digit:]]*)
real_literal [[:digit:]]+"."[[:digit:]]*{real_suffix}?
real_literal [[:digit:]]+"."[[:digit:]]*{exponent_part}?{real_suffix}?
hex_digit [[:digit:]A-fa-f]
octal_digit [0-7]
octal_integer_literal 0{octal_digit}+
hexadecimal_integer_literal 0x{hex_digit}+
exponent_part (e|E){sign}?[[:digit:]]+
sign "+"|"-"
integer_suffix L|LL|U|UL|ULL
real_suffix F
single_character [^\'\\]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment