CQL::Token(3pm)

CQL::Token3pm

Class for token objects returned by cql::lexer

Usage

    my $token = $lexer->nextToken();
    
    if ( $token->type() == CQL_WORD ) { 
        print "the token is a word with value=", $token->string(), "\n";
    }

Overview

Ordinarily you won't really care about the tokens returned by the CQL::Lexer since the lexer is used behind the scenes by CQL::Parser.

Methods

new()

    my $token = CQL::Token->new( '=' );

new()

getType()

Returns the token type which will be available as one of the constants that CQL::Token exports. See internals for a list of available constants.

getString()

Retruns the string equivalent of the token. Particularly useful when you only know it's a CQL_WORD.

Releases

7 releases since Debian 7 (Wheezy); the text changed 3 times.

  1. 7
  2. 8–9
  3. 10–11
  4. 12–13

From libcql-parser-perl 1.13-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.