QASM source code parser
##Install
if using npm, just run
npm i --save qasm
or if using yarn:
yarn add qasm
This is a simple example:
import {parse, printOperations} from 'qasm'
const sourceCode = '...'
// here value contains generated operations
const {tokens, value} = parse(sourceCode)
printOperations(value)https://github.com/Qiskit/openqasm
MIT