File: scanner.h

package info (click to toggle)
ceccomp 4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,648 kB
  • sloc: ansic: 6,531; python: 1,078; makefile: 248; sh: 145
file content (21 lines) | stat: -rw-r--r-- 322 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef SCANNER_H
#define SCANNER_H

#include "token.h"
#include <stdint.h>

struct scanner_t
{
  char *token_start;
  char *current_char;
  uint16_t line_nr;
};

typedef struct scanner_t scanner_t;
typedef struct token_t token_t;

extern void init_scanner (char *start);

extern void scan_token (token_t *token);

#endif