mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 15:48:21 +00:00
print returns the same type as the argument.
This commit is contained in:
parent
98da3f32c6
commit
2d78239d23
1 changed files with 5 additions and 1 deletions
|
@ -885,7 +885,11 @@ class parser(object):
|
|||
raise EParseTypeMismatch(self) if expr['t'] is None else EParseUndefined(self)
|
||||
self.expect(')')
|
||||
self.NextToken()
|
||||
return {'nt':'PRINT', 't':None, 'ch':[expr]}
|
||||
# Syntactically, print returns the same type as the expression.
|
||||
# However, compilation in Mono throws an exception, and even in
|
||||
# LSO, it throws a bounds check error when the result is a string
|
||||
# or key or list and the returned value is used.
|
||||
return {'nt':'PRINT', 't':expr['t'], 'ch':[expr]}
|
||||
|
||||
if tok0 != 'IDENT':
|
||||
if tok0 == 'EOF':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue