My Project
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 const char* tokenize_lc3_line (const char* line);
78 
83 const char *next_token (void);
84 
87 void print_tokens (void);
88 
91 void tokens_term (void);
92 
93 #endif
const char * next_token(void)
const char * tokenize_lc3_line(const char *line)
void tokens_init(void)
void tokens_term(void)
void print_tokens(void)