1 /* 2 Copyright (C) 2016-2017 Alexander Borisov 3 4 This library is free software; you can redistribute it and/or 5 modify it under the terms of the GNU Lesser General Public 6 License as published by the Free Software Foundation; either 7 version 2.1 of the License, or (at your option) any later version. 8 9 This library is distributed in the hope that it will be useful, 10 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 Lesser General Public License for more details. 13 14 You should have received a copy of the GNU Lesser General Public 15 License along with this library; if not, write to the Free Software 16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 17 18 Author: lex.borisov@gmail.com (Alexander Borisov) 19 */ 20 21 #ifndef MyHTML_MyCSS_PARSER_H 22 #define MyHTML_MyCSS_PARSER_H 23 #pragma once 24 25 #ifdef __cplusplus 26 extern "C" { 27 #endif 28 29 #include "mycss/myosi.h" 30 #include "mycss/mycss.h" 31 #include "mycss/entry.h" 32 #include "mycss/mystring.h" 33 #include "mycss/convert.h" 34 #include "mycss/namespace/state.h" 35 #include "mycss/selectors/state.h" 36 #include "mycss/selectors/parser.h" 37 #include "mycss/declaration/state.h" 38 #include "mycore/incoming.h" 39 40 mycss_token_t * mycss_parser_token_ready_callback_function(mycss_entry_t* entry, mycss_token_t* token); 41 42 bool mycss_parser_token(mycss_entry_t* entry, mycss_token_t* token, bool last_response); 43 bool mycss_parser_token_selector_list_end(mycss_entry_t* entry, mycss_token_t* token, bool last_response); 44 45 bool mycss_parser_token_drop_component_value(mycss_entry_t* entry, mycss_token_t* token, bool last_response); 46 47 bool mycss_parser_token_drop_at_rule(mycss_entry_t* entry, mycss_token_t* token, bool last_response); 48 bool mycss_parser_token_drop_at_rule_component_value(mycss_entry_t* entry, mycss_token_t* token, bool last_response); 49 50 #ifdef __cplusplus 51 } /* extern "C" */ 52 #endif 53 54 #endif /* MyHTML_MyCSS_PARSER_H */ 55