#include <stdio.h>
#include "buffer.h"
#include "types.h"
Defines | |
#define | INPUT_BUFFER 20000 |
Defines the buffer size. | |
#define | sequencewarning(s) (sequencewarning_token(s, yytext)) |
Defines a function to display flex warnings. | |
#define | sequenceerror(s) (sequenceerror_token(s, yytext)) |
Defines a function to display flex error. | |
Functions | |
void | sequencerestart (FILE *f) |
Function used to start processing a file. | |
int | sequenceparse () |
Function used to start parsing a sequence. | |
int | sequencelex () |
Function used to start parsing a sequence. | |
void | sequenceerror_token (const char *s, const char *token) |
Function used to display flex errors. | |
void | free_flex_mem () |
Function used to free all memory allocated by the parser. | |
Variables | |
int | sequencelineno = 1 |
char * | sequencetext |
FILE * | sequencein = (FILE *) 0 |
char * | sequence_file_name |
int | sequence_nb_errors |
p_sequence * | sequence_result |
#define INPUT_BUFFER 20000 |
Defines the buffer size.
This definition defines the buffer size that will be used by the parser
#define sequenceerror | ( | s | ) | (sequenceerror_token(s, yytext)) |
Defines a function to display flex error.
[in] | s | : the error message |
#define sequencewarning | ( | s | ) | (sequencewarning_token(s, yytext)) |
Defines a function to display flex warnings.
[in] | s | : the warning message |
free_flex_mem | ( | ) |
Function used to free all memory allocated by the parser.
This function will be used to free all pointers declared by the parser that have not been destroyed
Referenced by get_sequences().
void sequenceerror_token | ( | const char * | s, | |
const char * | token | |||
) |
Function used to display flex errors.
[in] | s | : the error message |
[in] | token | : the token that has raised the error |
References _ERROR, ERROR_, sequence_file_name, sequence_nb_errors, sequenceerror_token(), and sequencelineno.
Referenced by sequenceerror_token().
sequencelex | ( | void | ) |
Function used to start parsing a sequence.
This function will be used to start parsing a sequence by the parser
sequenceparse | ( | ) |
Function used to start parsing a sequence.
Referenced by get_sequences().
sequencerestart | ( | FILE * | f | ) |
Function used to start processing a file.
[in] | f | : the file to process |
Referenced by get_sequences().
char* sequence_file_name |
Numbers of parser's error
The number of errors
Referenced by get_sequences(), and sequenceerror_token().
The result of the parser: the sequences
The result of the parsing : the sequences
Referenced by get_sequences().
FILE * sequencein = (FILE *) 0 |
The file desriptor
int sequencelineno = 1 |
Line number
Referenced by sequenceerror_token().
char * sequencetext |
Sequence nucleotides