Cobra Interactive Query Language types

NAME

types — the default classification of tokens

DESCRIPTION

A token type reference must be one of the following:
	@chr		# a character
	@cpp		# a preprocessor directive (only when -c and or -n is used)
	@cmnt 		# a comment (only when -c and or -n is used)
	@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 types include colons (:), semi-colons (;), commas (,), and braces: ( ) [ ] { }. Technically, the colon can be an operator when it is used in a ternary operation (x)?y:z, but a colon can also appear after a label-name, and is therefore not classified.

NOTES

If the literal symbol @ must be matched at the start of a token, use: \@word.

SEE ALSO

map

Return to index
Manual
Tutorial
(Last Updated: 8 May 2017)