Module: CTokenizer::Expression
- Defined in:
- lib/caphir/ctokenizer.rb
Constant Summary collapse
- NEWLINE =
/(?:\r\n|\n\r|\r|\n)[\t ]*/
- SPACE_1 =
/[\t ]+/
- SPACE_2 =
/\\[\t ]*#{NEWLINE}/
- IDENTIFIER =
/[a-zA-Z_]\w*/
- COMMENT =
%r(#{comment_1}|#{comment_2})m
- SYMBOL =
%r(#{sym_1}|#{sym_2}|#{sym_3}|#{sym_4})
- CHARACTER =
/L?'(?:\\.|[^'])*'/
- STRING =
/L?"(?:\\.|[^"])*"/
- CONSTANT =
%r(#{int_1}|#{int_2}|#{int_3}|#{flt_1}|#{flt_2}|#{flt_3})