GithubHelp home page GithubHelp logo

shnarazk / tree-sitter-bqn Goto Github PK

View Code? Open in Web Editor NEW
10.0 3.0 0.0 6.69 MB

BQN grammar for tree-sitter

License: Mozilla Public License 2.0

Python 0.02% C++ 0.05% JavaScript 0.50% Rust 0.19% C 99.09% Scheme 0.12% Nix 0.03%
bqn parser tree-sitter

tree-sitter-bqn's People

Contributors

dependabot[bot] avatar shnarazk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

tree-sitter-bqn's Issues

`blMod_2_`, `blMod_1`, `BlFunc` and `blSub`

Unresolved conflict for symbol sequence:

  '('  atom  •  '('  …

Possible interpretations:

  1:  '('  (subExpr  atom  •  Derv  '↩'  subExpr)
  2:  '('  (subExpr  atom  •  Derv  '↩')
  3:  '('  (subject  atom)  •  '('  …

Possible resolutions:

  1:  Specify a higher precedence in `subExpr` than in the other rules.
  2:  Specify a higher precedence in `subject` than in the other rules.
  3:  Specify a left or right associativity in `subject`
  4:  Add a conflict for these rules: `subject`, `subExpr`
  • development of the 1st:
  1. nothing
  2. subject, Derv, '*'
  3. atom, Derv, '*'
  4. '(', subExpr, ')', Derv, '*'
  5. '(',atom, ASGN, subExpr, ')', Derv, '*'
  • development of the 3rd:
  1. nothing
  2. subject, Derv, '*'
  3. atom, Derv, '*'
  4. '(', subExpr, ')', Derv, '*'
  5. '(', arg, ')', Derv, '*'
  6. '(', subject, ')', Derv, '*'
  7. '(', atom, ')', Derv, '*'

EXPORT

Unresolved conflict for symbol sequence:

  symbol_s  •  '⇐'  …

Possible interpretations:

  1:  (NAME  symbol_s)  •  '⇐'  …
  2:  (atom  symbol_s)  •  '⇐'  …

Possible resolutions:

  1:  Specify a higher precedence in `atom` than in the other rules.
  2:  Specify a higher precedence in `NAME` than in the other rules.
  3:  Add a conflict for these rules: `atom`, `NAME`

Changing From

EXPORT: $ => seq(optional($.LHS_ELT), '⇐'),

to

EXPORT: $ => seq(optional($.atom), '⇐'),

works. LHS and atom or arg would be in conflict.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.