w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

lj_lex.h File Reference
#include <stdarg.h>
#include "lj_obj.h"
#include "lj_err.h"
Include dependency graph for lj_lex.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  BCInsLine
 
struct  VarInfo
 
struct  LexState
 

Macros

#define TKDEF(_, __)
 
#define TKENUM1(name)   TK_##name,
 
#define TKENUM2(name, sym)   TK_##name,
 

Typedefs

typedef int LexChar
 
typedef int LexToken
 
typedef struct BCInsLine BCInsLine
 
typedef struct VarInfo VarInfo
 
typedef struct LexState LexState
 

Enumerations

enum  {
  TK_OFS = 256 , TK_and , TK_break , TK_do ,
  TK_else , TK_elseif , TK_end , TK_false ,
  TK_for , TK_function , TK_goto , TK_if ,
  TK_in , TK_local , TK_nil , TK_not ,
  TK_or , TK_repeat , TK_return , TK_then ,
  TK_true , TK_until , TK_while , TK_concat ,
  TK_dots , TK_eq , TK_ge , TK_le ,
  TK_ne , TK_label , TK_number , TK_name ,
  TK_string , TK_eof , TK_RESERVED = TK_while - TK_OFS
}
 

Functions

int lj_lex_setup (lua_State *L, LexState *ls)
 
void lj_lex_cleanup (lua_State *L, LexState *ls)
 
void lj_lex_next (LexState *ls)
 
LexToken lj_lex_lookahead (LexState *ls)
 
const char * lj_lex_token2str (LexState *ls, LexToken tok)
 
void lj_lex_error (LexState *ls, LexToken tok, ErrMsg em,...)
 
void lj_lex_init (lua_State *L)
 

Macro Definition Documentation

◆ TKDEF

#define TKDEF (   _,
  __ 
)
Value:
_(and) _(break) _(do) _(else) _(elseif) _(end) _(false) \
_(for) _(function) _(goto) _(if) _(in) _(local) _(nil) _(not) _(or) \
_(repeat) _(return) _(then) _(true) _(until) _(while) \
__(concat, ..) __(dots, ...) __(eq, ==) __(ge, >=) __(le, <=) __(ne, ~=) \
__(label, ::) __(number, <number>) __(name, <name>) __(string, <string>) \
__(eof, <eof>)
static char * concat(const char *s1, const char *s2)
Definition: afm2pl.c:377
int ne
Definition: afm2tfm.c:885
#define name
Definition: Endian.h:81
#define nil
Definition: dvi2tty.h:53
#define _(String)
Definition: ftxerr18.c:64
#define local
Definition: zutil.h:30
#define true
Definition: ftrandom.c:51
boolean eof(FILE *file)
Definition: eofeoln.c:11
set set set set set set set macro pixldst1 abits if abits op else op endif endm macro pixldst2 abits if abits op else op endif endm macro pixldst4 abits if abits op else op endif endm macro pixldst0 abits op endm macro pixldst3 mem_operand op endm macro pixldst30 mem_operand op endm macro pixldst abits if abits elseif abits elseif abits elseif abits elseif abits pixldst0 abits else pixldst0 abits pixldst0 abits pixldst0 abits pixldst0 abits endif elseif abits else pixldst0 abits pixldst0 abits endif elseif abits else error unsupported bpp *numpix else pixst endif endm macro pixld1_s mem_operand if asr adds SRC_WIDTH_FIXED bpl add asl mov asr adds SRC_WIDTH_FIXED bpl add asl mov asr adds SRC_WIDTH_FIXED bpl add asl mov asr adds SRC_WIDTH_FIXED bpl add asl elseif asr adds SRC_WIDTH_FIXED bpl add asl mov asr adds SRC_WIDTH_FIXED bpl add asl else error unsupported endif endm macro pixld2_s mem_operand if mov asr add asl add asl mov asr sub UNIT_X add asl mov asr add asl add asl mov asr add UNIT_X add asl else pixld1_s mem_operand pixld1_s mem_operand endif endm macro pixld0_s mem_operand if asr adds SRC_WIDTH_FIXED bpl add asl elseif asr adds SRC_WIDTH_FIXED bpl add asl endif endm macro pixld_s_internal mem_operand if mem_operand pixld2_s mem_operand pixdeinterleave basereg elseif mem_operand elseif mem_operand elseif mem_operand elseif mem_operand pixld0_s mem_operand else pixld0_s mem_operand pixld0_s mem_operand pixld0_s mem_operand pixld0_s mem_operand endif elseif mem_operand else pixld0_s mem_operand pixld0_s mem_operand endif elseif mem_operand else error unsupported mem_operand if bpp mem_operand endif endm macro vuzp8 reg2 vuzp d d &reg2 endm macro vzip8 reg2 vzip d d &reg2 endm macro pixdeinterleave basereg basereg basereg basereg basereg endif endm macro pixinterleave basereg basereg basereg basereg basereg endif endm macro PF boost_increment endif if endif PF tst PF addne PF subne PF cmp ORIG_W if endif if endif if endif PF subge ORIG_W PF subges if endif if endif if endif endif endm macro cache_preload_simple endif if dst_r_bpp pld[DST_R, #(PREFETCH_DISTANCE_SIMPLE *dst_r_bpp/8)] endif if mask_bpp pld if[MASK, #(PREFETCH_DISTANCE_SIMPLE *mask_bpp/8)] endif endif endm macro fetch_mask_pixblock pixld mask_basereg pixblock_size MASK endm macro ensure_destination_ptr_alignment process_pixblock_tail_head if beq irp skip1(dst_w_bpp<=(lowbit *8)) &&((lowbit *8)<(pixblock_size *dst_w_bpp)) .if lowbit< 16 tst DST_R
set set set set set set set set set set set set set set set set set set set set *set set set macro pixldst op &r &cond WK op &r &cond WK op &r &cond WK else op &m &cond &ia op &r &cond WK else op &m &cond &ia elseif elseif else error unsupported base if elseif elseif else error unsupported unaligned pixldst unaligned endm macro pixst base base else pixldst base endif endm macro PF base if bpp PF set rept prefetch_distance PF set OFFSET endr endif endm macro preload_leading_step2 base if bpp ifc DST PF PF else if bpp lsl PF and
static int repeat
Definition: pnmtops.c:230
void dots(unsigned char u, int n)
static FILE * in
Definition: squeeze.c:36
struct def_label label[1024]
Definition: t1part.c:286
while(temp)
Definition: t4ht.c:858
#define end(cp)
Definition: zic.c:71
#define return(val)

Definition at line 15 of file lj_lex.h.

◆ TKENUM1

#define TKENUM1 (   name)    TK_##name,

Definition at line 25 of file lj_lex.h.

◆ TKENUM2

#define TKENUM2 (   name,
  sym 
)    TK_##name,

Definition at line 26 of file lj_lex.h.

Typedef Documentation

◆ BCInsLine

typedef struct BCInsLine BCInsLine

◆ LexChar

typedef int LexChar

Definition at line 32 of file lj_lex.h.

◆ LexState

typedef struct LexState LexState

◆ LexToken

typedef int LexToken

Definition at line 33 of file lj_lex.h.

◆ VarInfo

typedef struct VarInfo VarInfo

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
TK_OFS 
TK_and 
TK_break 
TK_do 
TK_else 
TK_elseif 
TK_end 
TK_false 
TK_for 
TK_function 
TK_goto 
TK_if 
TK_in 
TK_local 
TK_nil 
TK_not 
TK_or 
TK_repeat 
TK_return 
TK_then 
TK_true 
TK_until 
TK_while 
TK_concat 
TK_dots 
TK_eq 
TK_ge 
TK_le 
TK_ne 
TK_label 
TK_number 
TK_name 
TK_string 
TK_eof 
TK_RESERVED 

Definition at line 23 of file lj_lex.h.

Function Documentation

◆ lj_lex_cleanup()

void lj_lex_cleanup ( lua_State L,
LexState ls 
)

Definition at line 440 of file lj_lex.c.

◆ lj_lex_error()

void lj_lex_error ( LexState ls,
LexToken  tok,
ErrMsg  em,
  ... 
)

Definition at line 481 of file lj_lex.c.

◆ lj_lex_init()

void lj_lex_init ( lua_State L)

Definition at line 499 of file lj_lex.c.

◆ lj_lex_lookahead()

LexToken lj_lex_lookahead ( LexState ls)

Definition at line 462 of file lj_lex.c.

◆ lj_lex_next()

void lj_lex_next ( LexState ls)

Definition at line 449 of file lj_lex.c.

◆ lj_lex_setup()

int lj_lex_setup ( lua_State L,
LexState ls 
)

Definition at line 393 of file lj_lex.c.

◆ lj_lex_token2str()

const char* lj_lex_token2str ( LexState ls,
LexToken  tok 
)

Definition at line 470 of file lj_lex.c.