C11 lexer (and parser?) experiments
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
ident_
|
|
|
|
i1dent
|
|
|
|
i\uffffent
|
|
|
|
i\UFFfFaaAadent // comment
|
|
|
|
|
|
|
|
/*
|
|
|
|
multi
|
|
|
|
line
|
|
|
|
comment */
|
|
|
|
|
|
|
|
123
|
|
|
|
0707
|
|
|
|
0xfAb
|
|
|
|
0XFaB
|
|
|
|
|
|
|
|
123U
|
|
|
|
123UL
|
|
|
|
123ULL
|
|
|
|
123L
|
|
|
|
123LU
|
|
|
|
123LLU
|
|
|
|
|
|
|
|
123u
|
|
|
|
123ul
|
|
|
|
123ull
|
|
|
|
123l
|
|
|
|
123lu
|
|
|
|
123llu
|
|
|
|
|
|
|
|
10e5
|
|
|
|
10E5
|
|
|
|
10e5f
|
|
|
|
10e5F
|
|
|
|
10e5L
|
|
|
|
|
|
|
|
10e-5
|
|
|
|
10e-5f
|
|
|
|
10e-5F
|
|
|
|
10e-5L
|
|
|
|
|
|
|
|
10e+5
|
|
|
|
10e+5f
|
|
|
|
10e+5F
|
|
|
|
10e+5L
|
|
|
|
|
|
|
|
123.0
|
|
|
|
123.
|
|
|
|
.01
|
|
|
|
|
|
|
|
123.0e-2f
|
|
|
|
123.e-5L
|
|
|
|
.02E+5l
|
|
|
|
|
|
|
|
0xfffp-2
|
|
|
|
0xfffp+2
|
|
|
|
0xFFFP2
|
|
|
|
|
|
|
|
'a'
|
|
|
|
'abcd'
|
|
|
|
L'b'
|
|
|
|
u'c'
|
|
|
|
U'd'
|
|
|
|
'\n\r\'\"\?\\\a\b\f\n\r\t\v'
|
|
|
|
'\1\12\123'
|
|
|
|
'\xffaab'
|
|
|
|
'\uffFF\xff'
|
|
|
|
|
|
|
|
"string"
|
|
|
|
u8"\n\r\'\"\?\\\a\b\f\n\r\t\v"
|
|
|
|
u"\1\12\123"
|
|
|
|
U"\xffaab"
|
|
|
|
L"\uffFF\xff"
|
|
|
|
|
|
|
|
[ ] ( ) { } . ->
|
|
|
|
++ -- & * + - ~ !
|
|
|
|
/ % << >> < > <= >=
|
|
|
|
? : ; ...
|
|
|
|
= *= /= %= += -= <<=
|
|
|
|
, # ##
|
|
|
|
<: :> <% %> %: %:%:
|