mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 15:48:21 +00:00
Change default options set to frozenset, and add a TODO.
Not convinced a set is the way to go here, though, given it's checked at the beginning only.
This commit is contained in:
parent
0b6ff4646e
commit
b36356db45
1 changed files with 5 additions and 2 deletions
|
@ -1642,7 +1642,7 @@ class parser(object):
|
|||
self.NextToken()
|
||||
|
||||
|
||||
def parse(self, script, options = set()):
|
||||
def parse(self, script, options = frozenset()):
|
||||
"""Parse the given stream with the given options.
|
||||
|
||||
This function also builds the temporary globals table.
|
||||
|
@ -1663,12 +1663,15 @@ class parser(object):
|
|||
# the correctness of the output)
|
||||
self.explicitcast = 'explicitcast' in options
|
||||
|
||||
# (TODO:) Allow string + key
|
||||
# TODO: Allow string + key
|
||||
#self.allowkeyconcat = 'allowkeyconcat' in options
|
||||
|
||||
# Allow C style string composition of strings: "blah" "blah" = "blahblah"
|
||||
self.allowmultistrings = 'allowmultistrings' in options
|
||||
|
||||
# TODO: Allow pure C-style string parsing. This is low-priority.
|
||||
#self.allowcescapes = 'allowcescapes' in options
|
||||
|
||||
# Symbol table:
|
||||
# This is a list of all local and global symbol tables.
|
||||
# The first element (0) is the global scope. Each symbol table is a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue