mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-14 09:12:22 +07:00
We have to introduce a new lexeme '@=' and re-define '@' to become a binary operator as well as the prefix of the decorator.
67 lines
1.9 KiB
Plaintext
67 lines
1.9 KiB
Plaintext
PyFile:MatMul.py
|
|
PyExpressionStatement
|
|
PyBinaryExpression
|
|
PyReferenceExpression: x
|
|
PsiElement(Py:IDENTIFIER)('x')
|
|
PsiWhiteSpace(' ')
|
|
PsiElement(Py:AT)('@')
|
|
PsiWhiteSpace(' ')
|
|
PyReferenceExpression: y
|
|
PsiElement(Py:IDENTIFIER)('y')
|
|
PsiWhiteSpace('\n')
|
|
PyExpressionStatement
|
|
PyBinaryExpression
|
|
PyBinaryExpression
|
|
PyReferenceExpression: x
|
|
PsiElement(Py:IDENTIFIER)('x')
|
|
PsiWhiteSpace(' ')
|
|
PsiElement(Py:AT)('@')
|
|
PsiWhiteSpace(' ')
|
|
PyReferenceExpression: y
|
|
PsiElement(Py:IDENTIFIER)('y')
|
|
PsiWhiteSpace(' ')
|
|
PsiElement(Py:AT)('@')
|
|
PsiWhiteSpace(' ')
|
|
PyReferenceExpression: z
|
|
PsiElement(Py:IDENTIFIER)('z')
|
|
PsiWhiteSpace('\n')
|
|
PyExpressionStatement
|
|
PyBinaryExpression
|
|
PyBinaryExpression
|
|
PyReferenceExpression: x
|
|
PsiElement(Py:IDENTIFIER)('x')
|
|
PsiWhiteSpace(' ')
|
|
PsiElement(Py:AT)('@')
|
|
PsiWhiteSpace(' ')
|
|
PyReferenceExpression: y
|
|
PsiElement(Py:IDENTIFIER)('y')
|
|
PsiWhiteSpace(' ')
|
|
PsiElement(Py:MULT)('*')
|
|
PsiWhiteSpace(' ')
|
|
PyReferenceExpression: z
|
|
PsiElement(Py:IDENTIFIER)('z')
|
|
PsiWhiteSpace('\n')
|
|
PyExpressionStatement
|
|
PyBinaryExpression
|
|
PyReferenceExpression: x
|
|
PsiElement(Py:IDENTIFIER)('x')
|
|
PsiWhiteSpace(' ')
|
|
PsiElement(Py:PLUS)('+')
|
|
PsiWhiteSpace(' ')
|
|
PyBinaryExpression
|
|
PyReferenceExpression: y
|
|
PsiElement(Py:IDENTIFIER)('y')
|
|
PsiWhiteSpace(' ')
|
|
PsiElement(Py:AT)('@')
|
|
PsiWhiteSpace(' ')
|
|
PyReferenceExpression: z
|
|
PsiElement(Py:IDENTIFIER)('z')
|
|
PsiWhiteSpace('\n')
|
|
PyAugAssignmentStatement
|
|
PyReferenceExpression: z
|
|
PsiElement(Py:IDENTIFIER)('z')
|
|
PsiWhiteSpace(' ')
|
|
PsiElement(Py:ATEQ)('@=')
|
|
PsiWhiteSpace(' ')
|
|
PyReferenceExpression: x
|
|
PsiElement(Py:IDENTIFIER)('x') |