Skip to content

Commit

Permalink
Quilt demo quil submodule (#1269)
Browse files Browse the repository at this point in the history
* raw-capture fixup

* fixup handling of ro sources

* Use quillang submodule

* Pin quillang submodule to where quil.g4 was merged

* Add Makefile target to generate parser

Add symlink for Quil.g4 into the quillang submodule

* fix

* Add quil grammar submodule makefile target

* Update parser readme

Co-authored-by: Erik Davis <erik@rigetti.com>
  • Loading branch information
notmgsk and Erik Davis committed Nov 23, 2020
1 parent 20eef82 commit 3551f96
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 368 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "quillang"]
path = docs/quil
url = https://github.com/rigetti/quil.git
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,11 @@ upload:
.PHONY: version
version:
@git describe --tags | sed 's/v//' | sed 's/\(.*\)-.*/\1/'| sed 's/-/./'

docs/quil/grammars/Quil.g4:
git submodule init
git submodule update

.PHONY: generate-parser
generate-parser: docs/quil/grammars/Quil.g4
cd docs/quil/grammars && antlr -Dlanguage=Python3 -o ../../../pyquil/_parser/gen3 Quil.g4
1 change: 1 addition & 0 deletions docs/quil
Submodule quil added at 634404
354 changes: 0 additions & 354 deletions pyquil/_parser/Quil.g4

This file was deleted.

1 change: 1 addition & 0 deletions pyquil/_parser/Quil.g4
Loading

0 comments on commit 3551f96

Please sign in to comment.