Advertisement
Guest User

lexer.h

a guest
Mar 7th, 2022
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.40 KB | None | 0 0
  1. typedef struct alpha_token {
  2.     unsigned int line;
  3.     unsigned int token_number;
  4.     char* content;
  5.     enum TOKEN_T_ENUM token_type;
  6.     struct alpha_token* next;
  7.     struct alpha_token *lex;
  8.  
  9. } *alpha_token_t;
  10.  
  11. #define YY_DECL int alpha_yylex(alpha_token_t token_param)
  12. extern YY_DECL;
  13.  
  14. alpha_token_t head = NULL;
  15.  
  16. void print_token(enum TOKEN_T_ENUM tokentype, alpha_token_t token_arg);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement