Skip to content
This repository has been archived by the owner on Sep 13, 2019. It is now read-only.

make registers const in grammar.jison #77

Merged
merged 1 commit into from
Jun 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- `@qiskit/qiskit-sim`: add gates to gates map in constructor
- `@qiskit/qiskit-sim`: remove unused addGate function in grammar.jison
- `@qiskit/qiskit-sim`: allow custom gates to be overwritten
- `@qiskit/qiskit-qasm`: make registers const in grammar.jison

## [0.9.0] - 2019-05-13

Expand Down
2 changes: 1 addition & 1 deletion packages/qiskit-qasm/lib/grammar.jison
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@

// List of register definitionsutil
const externalFuncs = ['sin', 'cos', 'tan', 'exp', 'ln', 'sqrt'];
var registers = [];
const registers = [];

function launchError(line, msg) {
throw new QasmError(msg, {line: line});
Expand Down