-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Kunlin Yu <[email protected]>
- Loading branch information
Showing
11 changed files
with
233 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# Build directory | ||
build | ||
build_dbg | ||
|
||
# Prerequisites | ||
*.d | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* File Name: global_yylex.h | ||
* | ||
* Copyright (c) 2024 IndoorSpatial | ||
* | ||
* Author: Kunlin Yu <[email protected]> | ||
* Create Date: 2024/12/31 | ||
* | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include <cql2_parser_base.hh> | ||
|
||
enum LexerInstance { | ||
CQL2_TEXT, | ||
}; | ||
|
||
void set_current_lexer(LexerInstance lexer); | ||
|
||
class Cql2Lexer; | ||
void set_text_lexer(Cql2Lexer* lexer); | ||
|
||
// bison expect a global yylex | ||
// https://www.gnu.org/software/bison/manual/bison.html#C_002b_002b-Scanner-Interface | ||
int yylex(cql2cpp::Cql2ParserBase::value_type* yylval); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.