0.0.27 • Published 2 years ago

@blockscholes/ql v0.0.27

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

CodeMirror 6 language package for BlockScholes query language

This repo defines a CodeMirror language support package for the BlockScholes query language. The query language is used in the UI's historical analyzer. This package tells CodeMirror how to parse the language.

The current implementation only supports function application on strings:

avg("CB.BTC.USD", sum("CB.ETH.EUR"))

TODO

  • support numbers
  • support arithmetic

Making changes

  1. Amend the grammar in src/syntax.grammar. See the Lezer system guide for information on this file format.

  2. Adjust the metadata in src/index.ts to work with your new grammar.

  3. Adjust the grammar tests in test/cases.txt.

  4. Build (yarn run prepare) and test (yarn test).

  5. Run yarn run build:grammar to create values for the parser terms.

  6. Publish with yarn publish --access=public. You will need to be in the Blockscholes organization on npm.

0.0.20

2 years ago

0.0.21

2 years ago

0.0.22

2 years ago

0.0.23

2 years ago

0.0.24

2 years ago

0.0.25

2 years ago

0.0.15

2 years ago

0.0.16

2 years ago

0.0.17

2 years ago

0.0.18

2 years ago

0.0.19

2 years ago

0.0.10

2 years ago

0.0.11

2 years ago

0.0.12

2 years ago

0.0.13

2 years ago

0.0.14

2 years ago

0.0.26

2 years ago

0.0.9

2 years ago

0.0.27

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago