Motr  M0
lex.h File Reference
#include <sys/types.h>
Include dependency graph for lex.h:

Go to the source code of this file.

Data Structures

struct  ff2c_token
 
struct  ff2c_context
 

Macros

#define __MOTR_XCODE_FF2C_LEX_H__
 

Enumerations

enum  ff2c_token_type {
  FTT_IDENTIFIER = 1, FTT_REQUIRE, FTT_STRING, FTT_VOID,
  FTT_U8, FTT_U32, FTT_U64, FTT_OPAQUE,
  FTT_RECORD, FTT_UNION, FTT_SEQUENCE, FTT_ARRAY,
  FTT_OPEN, FTT_CLOSE, FTT_SEMICOLON, FTT_TAG,
  FTT_ESCAPE
}
 
enum  { FF2C_CTX_STACK_MAX = 32 }
 

Functions

int ff2c_token_get (struct ff2c_context *ctx, struct ff2c_token *tok)
 
void ff2c_token_put (struct ff2c_context *ctx, struct ff2c_token *tok)
 
void ff2c_context_init (struct ff2c_context *ctx, const char *buf, size_t size)
 
void ff2c_context_fini (struct ff2c_context *ctx)
 
int ff2c_context_loc (struct ff2c_context *ctx, int nr, char *buf)
 

Variables

const char * ff2c_token_type_name []
 

Macro Definition Documentation

◆ __MOTR_XCODE_FF2C_LEX_H__

#define __MOTR_XCODE_FF2C_LEX_H__

Definition at line 26 of file lex.h.