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

Latest commit

 

History

History
31 lines (20 loc) · 1.05 KB

README.md

File metadata and controls

31 lines (20 loc) · 1.05 KB

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