Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

Eloitor/tree-sitter-sagemath_old

 
 

Repository files navigation

tree-sitter-sagemath

CI

Sagemath grammar for tree-sitter.

Differences from the Python grammar

  • Parses exponent ^ and xor ^^
  • Parses raw numbers 939393R. Distinguish between sage and python numbers
  • Methods can be called on sage numbers 16.sqrt() or 16J.sqrt() but not 16R.sqrt()
  • Parses ellipsis [1..10]
  • Parses generators G.0
  • Parses generators constructor ZZ.<x> = ZZ['x']
  • Symbolic functional notation f(x) = x^2
  • Parses prompts sage: 2 + 2 and >>> 3 + 2
  • Parses Backslash operator \

Not planned syntax support

  • Implicit multiplication

References

About

Sagemath grammar for tree-sitter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 56.4%
  • C 31.6%
  • Scheme 4.7%
  • Python 4.2%
  • Swift 3.1%