-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
symbol concatenation with binary
+
(#2431)
* dos2unix populate-deps.yml * Introduce binary `+` symbol concatenation
- Loading branch information
Showing
10 changed files
with
117 additions
and
42 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,40 +1,40 @@ | ||
name: Populate dependencies | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: write | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
VCPKG_FEATURE_FLAGS: dependencygraph | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: 'recursive' | ||
|
||
- name: Checkout vcpkg | ||
run: | | ||
git clone https://github.com/Microsoft/vcpkg.git | ||
cd vcpkg | ||
git checkout 56954f1db97f38635782d5ad7cdfd45d2731c854 | ||
- name: Bootstrap vcpkg | ||
working-directory: vcpkg | ||
run: ./bootstrap-vcpkg.sh | ||
|
||
# This will execute a dry-run, meaning that libraries will not be built and | ||
# installed, but they will still be reported to the GitHub dependency graph. | ||
# This step assumes `vcpkg` has been bootstrapped (run `./vcpkg/bootstrap-vcpkg`) | ||
- name: Run vcpkg | ||
run: ${{ github.workspace }}/vcpkg/vcpkg install --dry-run --debug | ||
|
||
name: Populate dependencies | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: write | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
VCPKG_FEATURE_FLAGS: dependencygraph | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: 'recursive' | ||
|
||
- name: Checkout vcpkg | ||
run: | | ||
git clone https://github.com/Microsoft/vcpkg.git | ||
cd vcpkg | ||
git checkout 56954f1db97f38635782d5ad7cdfd45d2731c854 | ||
- name: Bootstrap vcpkg | ||
working-directory: vcpkg | ||
run: ./bootstrap-vcpkg.sh | ||
|
||
# This will execute a dry-run, meaning that libraries will not be built and | ||
# installed, but they will still be reported to the GitHub dependency graph. | ||
# This step assumes `vcpkg` has been bootstrapped (run `./vcpkg/bootstrap-vcpkg`) | ||
- name: Run vcpkg | ||
run: ${{ github.workspace }}/vcpkg/vcpkg install --dry-run --debug | ||
|
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,9 @@ | ||
pre--post | ||
pre-(a) | ||
pre-(b) | ||
(a)-post | ||
(b)-post | ||
(b)(a)(a) | ||
(a)(b)(b) | ||
one:1, pi:3.140000 | ||
|
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,23 @@ | ||
// Souffle - A Datalog Compiler | ||
// Copyright (c) 2023, The Souffle Developers. All rights reserved | ||
// Licensed under the Universal Permissive License v 1.0 as shown at: | ||
// - https://opensource.org/licenses/UPL | ||
// - <souffle root>/licenses/SOUFFLE-UPL.txt | ||
|
||
.decl Add(s:symbol) | ||
Add("pre-" + "-post"). | ||
Add("pre-" + s) :- some_symbol(s). | ||
Add(s + "-post") :- some_symbol(s). | ||
Add(s1 + s2 + s3) :- | ||
some_symbol(s1), | ||
some_symbol(s2), | ||
some_symbol(s3), | ||
s1 != s2, | ||
s1 != s3. | ||
Add("one:" + to_string(1) + ", pi:" + to_string(3.14) + "\n"). | ||
|
||
.decl some_symbol(s:symbol) | ||
some_symbol("(a)"). | ||
some_symbol("(b)"). | ||
|
||
.output Add() |
Empty file.
Empty file.