Skip to content

Commit 5154540

Browse files
committed
README and LICENSE added.
1 parent f39c106 commit 5154540

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

LICENSE

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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/>.

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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+
```

0 commit comments

Comments
 (0)