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

Dependents:   scpi_sx127x scpi_sx127x_firstTest MLX90418_I2C_master

Committer:
dudmuck
Date:
Fri Aug 07 21:54:11 2015 +0000
Revision:
1:b497f235115a
update from github commit 6e5e3e0e3fc450eaf53feee059824ad85c4f270d

Who changed what in which revision?

UserRevisionLine numberNew contents of line
dudmuck 1:b497f235115a 1 /*-
dudmuck 1:b497f235115a 2 * Copyright (c) 2012-2013 Jan Breuer,
dudmuck 1:b497f235115a 3 *
dudmuck 1:b497f235115a 4 * All Rights Reserved
dudmuck 1:b497f235115a 5 *
dudmuck 1:b497f235115a 6 * Redistribution and use in source and binary forms, with or without
dudmuck 1:b497f235115a 7 * modification, are permitted provided that the following conditions are
dudmuck 1:b497f235115a 8 * met:
dudmuck 1:b497f235115a 9 * 1. Redistributions of source code must retain the above copyright notice,
dudmuck 1:b497f235115a 10 * this list of conditions and the following disclaimer.
dudmuck 1:b497f235115a 11 * 2. Redistributions in binary form must reproduce the above copyright
dudmuck 1:b497f235115a 12 * notice, this list of conditions and the following disclaimer in the
dudmuck 1:b497f235115a 13 * documentation and/or other materials provided with the distribution.
dudmuck 1:b497f235115a 14 *
dudmuck 1:b497f235115a 15 * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
dudmuck 1:b497f235115a 16 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
dudmuck 1:b497f235115a 17 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
dudmuck 1:b497f235115a 18 * DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
dudmuck 1:b497f235115a 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
dudmuck 1:b497f235115a 20 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
dudmuck 1:b497f235115a 21 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
dudmuck 1:b497f235115a 22 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
dudmuck 1:b497f235115a 23 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
dudmuck 1:b497f235115a 24 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
dudmuck 1:b497f235115a 25 * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
dudmuck 1:b497f235115a 26 */
dudmuck 1:b497f235115a 27
dudmuck 1:b497f235115a 28 /**
dudmuck 1:b497f235115a 29 * @file lexer.h
dudmuck 1:b497f235115a 30 * @date Thu Mar 21 15:00:58 UTC 2013
dudmuck 1:b497f235115a 31 *
dudmuck 1:b497f235115a 32 * @brief SCPI Lexer
dudmuck 1:b497f235115a 33 *
dudmuck 1:b497f235115a 34 *
dudmuck 1:b497f235115a 35 */
dudmuck 1:b497f235115a 36
dudmuck 1:b497f235115a 37 #ifndef SCPI_LEXER_H
dudmuck 1:b497f235115a 38 #define SCPI_LEXER_H
dudmuck 1:b497f235115a 39
dudmuck 1:b497f235115a 40 #include "scpi/types.h"
dudmuck 1:b497f235115a 41 #include "utils_private.h"
dudmuck 1:b497f235115a 42
dudmuck 1:b497f235115a 43 #ifdef __cplusplus
dudmuck 1:b497f235115a 44 extern "C" {
dudmuck 1:b497f235115a 45 #endif
dudmuck 1:b497f235115a 46
dudmuck 1:b497f235115a 47 int scpiLex_IsEos(lex_state_t * state) LOCAL;
dudmuck 1:b497f235115a 48 int scpiLex_WhiteSpace(lex_state_t * state, scpi_token_t * token) LOCAL;
dudmuck 1:b497f235115a 49 int scpiLex_ProgramHeader(lex_state_t * state, scpi_token_t * token) LOCAL;
dudmuck 1:b497f235115a 50 int scpiLex_CharacterProgramData(lex_state_t * state, scpi_token_t * token) LOCAL;
dudmuck 1:b497f235115a 51 int scpiLex_DecimalNumericProgramData(lex_state_t * state, scpi_token_t * token) LOCAL;
dudmuck 1:b497f235115a 52 int scpiLex_SuffixProgramData(lex_state_t * state, scpi_token_t * token) LOCAL;
dudmuck 1:b497f235115a 53 int scpiLex_NondecimalNumericData(lex_state_t * state, scpi_token_t * token) LOCAL;
dudmuck 1:b497f235115a 54 int scpiLex_StringProgramData(lex_state_t * state, scpi_token_t * token) LOCAL;
dudmuck 1:b497f235115a 55 int scpiLex_ArbitraryBlockProgramData(lex_state_t * state, scpi_token_t * token) LOCAL;
dudmuck 1:b497f235115a 56 int scpiLex_ProgramExpression(lex_state_t * state, scpi_token_t * token) LOCAL;
dudmuck 1:b497f235115a 57 int scpiLex_Comma(lex_state_t * state, scpi_token_t * token) LOCAL;
dudmuck 1:b497f235115a 58 int scpiLex_Semicolon(lex_state_t * state, scpi_token_t * token) LOCAL;
dudmuck 1:b497f235115a 59 int scpiLex_NewLine(lex_state_t * state, scpi_token_t * token) LOCAL;
dudmuck 1:b497f235115a 60
dudmuck 1:b497f235115a 61 #ifdef __cplusplus
dudmuck 1:b497f235115a 62 }
dudmuck 1:b497f235115a 63 #endif
dudmuck 1:b497f235115a 64
dudmuck 1:b497f235115a 65 #endif /* SCPI_LEXER_H */