Cobra | Interactive Query Language | token types | ||
---|---|---|---|---|
NAMEtypes — the default classification of tokensDESCRIPTIONA token type reference must be one of the following:@chr # a character @cpp # a preprocessor directive (unless -cpp is used) @cmnt # a comment (only when -comments is used) @const # a shorthand for any of the types starting with 'const' @const_flt # a constant float value @const_hex # a constant hexadecimal value @const_int # a constant integer @const_oct # a constant octal value @ident # an identifier @key # a keyword, like for, while, etc. @modifier # a modifier: unsigned, signed, short, long @oper # an operator, like +, -, >>, !=, etc. @qualifier # a qualifier: const, volatile @storage # a storage indicator: auto, register, extern, static @str # a string @type # a basic type name: int, char, void, double, floatTokens that are not classified with one of the tags above include colons (:), semi-colons (;), commas (,), and braces: ( ) [ ] { }.Technically, the colon can be an operator when used in a ternary operation (x)?y:z, but a colon can also appear after a label-name, and is therefore not separately classified. NOTESIf a literal @ must be matched at the start of a token, use a backslash escape, as in: \@word.SEE ALSOmap |
Return to index Manual Tutorial |
(Last Updated: 6 May 2021) |