File tree 2 files changed +44
-0
lines changed
2 files changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+ ZenAlgorithms Expressions
2
+ Copyright (C) 2024 Ian Torres <
[email protected] >
3
+
4
+ This program is free software: you can redistribute it and/or modify
5
+ it under the terms of the GNU Affero General Public License as
6
+ published by the Free Software Foundation, either version 3 of the
7
+ License, or (at your option) any later version.
8
+
9
+ This program 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
12
+ GNU Affero General Public License for more details.
13
+
14
+ You should have received a copy of the GNU Affero General Public License
15
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
Original file line number Diff line number Diff line change
1
+ # Expressions
2
+
3
+ ## Build
4
+
5
+ ``` shell
6
+ git clone
[email protected] :ZenAlgorithms/Expressions.git
7
+ cd Expressions
8
+ cmake .
9
+ make
10
+ make install
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ``` c++
16
+ #include < expression/expression.hpp>
17
+
18
+ using namespace std ;
19
+
20
+ auto it = expression::from_string(" /api/servers/{server}/status" );
21
+
22
+ auto result = it->query ("/api/servers/production/status");
23
+
24
+ cout << result->matches() << endl;
25
+ // 1
26
+
27
+ cout << result->bindings()->at("server") << endl;
28
+ // production
29
+ ```
You can’t perform that action at this time.
0 commit comments