Sagemath grammar for tree-sitter.
- Parses exponent
^
and xor^^
- Parses raw numbers
939393R
. Distinguish between sage and python numbers - Methods can be called on sage numbers
16.sqrt()
or16J.sqrt()
but not16R.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
\
- Implicit multiplication