https://github.com/j123b567/scpi-parser

Dependents:   scpi_sx127x scpi_sx127x_firstTest MLX90418_I2C_master

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers lexer_private.h Source File

lexer_private.h

00001 /*-
00002  * Copyright (c) 2012-2013 Jan Breuer,
00003  *
00004  * All Rights Reserved
00005  * 
00006  * Redistribution and use in source and binary forms, with or without
00007  * modification, are permitted provided that the following conditions are
00008  * met:
00009  * 1. Redistributions of source code must retain the above copyright notice,
00010  *    this list of conditions and the following disclaimer.
00011  * 2. Redistributions in binary form must reproduce the above copyright
00012  *    notice, this list of conditions and the following disclaimer in the
00013  *    documentation and/or other materials provided with the distribution.
00014  * 
00015  * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
00016  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
00017  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
00018  * DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
00019  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
00020  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
00021  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
00022  * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
00023  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
00024  * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
00025  * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00026  */
00027 
00028 /**
00029  * @file   lexer.h
00030  * @date   Thu Mar 21 15:00:58 UTC 2013
00031  * 
00032  * @brief  SCPI Lexer
00033  * 
00034  * 
00035  */
00036 
00037 #ifndef SCPI_LEXER_H
00038 #define SCPI_LEXER_H
00039 
00040 #include "scpi/types.h"
00041 #include "utils_private.h"
00042 
00043 #ifdef  __cplusplus
00044 extern "C" {
00045 #endif
00046 
00047     int scpiLex_IsEos(lex_state_t * state) LOCAL;
00048     int scpiLex_WhiteSpace(lex_state_t * state, scpi_token_t * token) LOCAL;
00049     int scpiLex_ProgramHeader(lex_state_t * state, scpi_token_t * token) LOCAL;
00050     int scpiLex_CharacterProgramData(lex_state_t * state, scpi_token_t * token) LOCAL;
00051     int scpiLex_DecimalNumericProgramData(lex_state_t * state, scpi_token_t * token) LOCAL;
00052     int scpiLex_SuffixProgramData(lex_state_t * state, scpi_token_t * token) LOCAL;
00053     int scpiLex_NondecimalNumericData(lex_state_t * state, scpi_token_t * token) LOCAL;
00054     int scpiLex_StringProgramData(lex_state_t * state, scpi_token_t * token) LOCAL;
00055     int scpiLex_ArbitraryBlockProgramData(lex_state_t * state, scpi_token_t * token) LOCAL;
00056     int scpiLex_ProgramExpression(lex_state_t * state, scpi_token_t * token) LOCAL;
00057     int scpiLex_Comma(lex_state_t * state, scpi_token_t * token) LOCAL;
00058     int scpiLex_Semicolon(lex_state_t * state, scpi_token_t * token) LOCAL;
00059     int scpiLex_NewLine(lex_state_t * state, scpi_token_t * token) LOCAL;
00060 
00061 #ifdef  __cplusplus
00062 }
00063 #endif
00064 
00065 #endif  /* SCPI_LEXER_H */