Cobra Interactive Query Language token types


types — the default classification of tokens


A 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, float
Tokens 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.


If a literal @ must be matched at the start of a token, use a backslash escape, as in: \@word.



Return to index
(Last Updated: 6 May 2021)