/************************************************************************/
/* Copyright 2003-2010 MBARI											*/
/************************************************************************/
/* Summary	: Definitions for parsing routines							*/
/* Filename : parse.h													*/
/* Author	: Robert Herlien (rah)										*/
/* Project	: Respirometers												*/
/* Revision : 1.0														*/
/* Created	: 09/01/2010 from config.h									*/
/*																			*/
/* MBARI provides this documentation and code "as is", with no warranty,	*/
/* express or implied, of its quality or consistency. It is provided without*/
/* support and without obligation on the part of the Monterey Bay Aquarium	*/
/* Research Institute to assist in its use, correction, modification, or	*/
/* enhancement. This information should not be published or distributed to	*/
/* third parties without specific written permission from MBARI.			*/
/*																			*/
/************************************************************************/
/* Modification History:												*/
/* 01sep2010 rah - created from config.h								*/
/* $Log $
*/
/************************************************************************/

#ifndef INCparseh
#define INCparseh		1

#include <fatFs/ff.h>			/* FatFs file system defns				*/
#include <stdio.h>

typedef struct					/****************************************/
{								/* Structure for match string to value	*/
	char		*current;		/* Current token ptr					*/
	char		*next;			/* Next token ptr						*/
} Tokenizer;					/****************************************/


/****************************************/
/* Function Declarations				*/
/****************************************/

Int32	getOneConfigLine(FIL *fp, char *buf, int buflen);
Void	initTokenizer(Tokenizer *tok, char *startp);
char	*getNextToken(Tokenizer *tok);
MBool	isaTok(char *tok);
char	*getDecToken(Tokenizer *tok, Nat32 *valp);
char	*getFltToken(Tokenizer *tok, float *valp);
void	strToLower(char *s);
Int16	sscanNum(char *s, Parm_t *valp);

#endif	/* INCparseh */
