Tag more semantic actions with nonterminals

This commit is contained in:
rocky
2017-10-13 15:43:41 -04:00
parent 03d1c48088
commit 1761ba2581
2 changed files with 14 additions and 7 deletions

View File

@@ -49,6 +49,10 @@ check-3.5: check-bytecode
check-3.6: check-bytecode
$(PYTHON) test_pythonlib.py --bytecode-3.6 --weak-verify $(COMPILE)
# FIXME
#: this is called when running under pypy3.5-5.8.0
5.8:
#: Check deparsing only, but from a different Python version
check-disasm:
$(PYTHON) dis-compare.py

View File

@@ -67,10 +67,10 @@ TABLE_R0 = {
}
TABLE_DIRECT = {
'BINARY_ADD': ( '+' ,),
'BINARY_SUBTRACT': ( '-' ,),
'BINARY_MULTIPLY': ( '*' ,),
'BINARY_DIVIDE': ( '/' ,),
'BINARY_ADD': ( '+' ,),
'BINARY_SUBTRACT': ( '-' ,),
'BINARY_MULTIPLY': ( '*' ,),
'BINARY_DIVIDE': ( '/' ,),
'BINARY_MATRIX_MULTIPLY': ( '@' ,),
'BINARY_TRUE_DIVIDE': ( '/' ,), # Not in <= 2.1
'BINARY_FLOOR_DIVIDE': ( '//' ,),
@@ -110,10 +110,13 @@ TABLE_DIRECT = {
(0, 'expr' ) ),
'unary_convert': ( '`%c`',
(0, 'expr' ), ),
'get_iter': ( 'iter(%c)', 0 ),
'slice0': ( '%c[:]', 0 ),
'get_iter': ( 'iter(%c)',
(0, 'expr'), ),
'slice0': ( '%c[:]',
(0, 'expr'), ),
'slice1': ( '%c[%p:]',
0, (1, 100) ),
(0, 'expr'),
(1, 100) ),
'slice2': ( '%c[:%p]',
0, (1, 100) ),
'slice3': ( '%c[%p:%p]',