My Project
Main Page
Related Pages
Data Structures
Files
File List
Globals
tokens.h
Go to the documentation of this file.
1
#ifndef __TOKENS_H__
2
#define __TOKENS_H__
3
4
/*
5
* "Copyright (c) 2012 by Fritz Sieker."
6
*
7
* Permission to use, copy, modify, and distribute this software and its
8
* documentation for any purpose, without fee, and without written
9
* agreement is hereby granted, provided that the above copyright notice
10
* and the following two paragraphs appear in all copies of this software,
11
* that the files COPYING and NO_WARRANTY are included verbatim with
12
* any distribution, and that the contents of the file README are included
13
* verbatim as part of a file named README with any distribution.
14
*
15
* IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT,
16
* INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
17
* OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE AUTHOR
18
* HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
19
*
20
* THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT
21
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22
* A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS"
23
* BASIS, AND THE AUTHOR NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT,
24
* UPDATES, ENHANCEMENTS, OR MODIFICATIONS."
25
*/
26
56
#define MAX_LINE_LENGTH 8180
57
59
#define MAX_TOKENS 10
60
62
void
tokens_init
(
void
);
63
77
char
*
tokenize_line
(
char
* line);
78
82
char
*
next_token
(
void
);
83
86
void
print_tokens
(
void
);
87
89
int
token_count
(
void
);
90
95
char
*
get_token
(
int
index);
96
98
void
tokens_term
(
void
);
99
100
#endif
tokenize_line
char * tokenize_line(char *line)
tokens_init
void tokens_init(void)
next_token
char * next_token(void)
token_count
int token_count(void)
tokens_term
void tokens_term(void)
print_tokens
void print_tokens(void)
get_token
char * get_token(int index)
Generated by
1.8.6