BAM
Abstract Machine for Bottom-Up Evaluation with the Push Method
Typedefs | Enumerations | Functions
tok.h File Reference

Token types (for lexical scanner) More...

#include "../base/ver.h"
#include "../base/str.h"
#include "../base/check.h"

Go to the source code of this file.

Typedefs

typedef enum tok_enum tok_t
 

Enumerations

enum  tok_enum {
  TOK_EOF,
  TOK_FULLSTOP,
  TOK_ATOM,
  TOK_STR,
  TOK_INT,
  TOK_VAR,
  TOK_ANONVAR,
  TOK_COMMA,
  TOK_LPAREN,
  TOK_RPAREN,
  TOK_IF,
  TOK_AND,
  TOK_OR,
  TOK_NOT,
  TOK_QUERY,
  TOK_COLON,
  TOK_LESS,
  TOK_GREATER,
  TOK_MINUS,
  TOK_ILLEGAL_CHAR,
  TOK_MISSINGQ,
  TOK_NOSPACE,
  TOK_INT_OVERFLOW,
  TOK_BAD_ESCAPE_SEQ
}
 

Functions

str_t tok_name (tok_t tok)
 
bool tok_is_err (tok_t tok)
 

Detailed Description

Token types (for lexical scanner)

Typedef Documentation

typedef enum tok_enum tok_t

Enumeration type for tokens returned by the lexical scanner

Enumeration Type Documentation

enum tok_enum

Enumeration type for tokens returned by the lexical scanner