rjdbcm / Aspidites

The reference implementation of the Woma Programming Language compiler.
http://aspidites.org
GNU General Public License v3.0
2 stars 1 forks source link

dict trigrams cause RecursionError: #35

Open github-actions[bot] opened 2 years ago

github-actions[bot] commented 2 years ago

dict trigrams cause RecursionError:

maximum recursion depth exceeded while getting the str of an object

| dict_keys

| set_update

https://github.com/rjdbcm/Aspidites/blob/d3b5d28b6847e9f67a338600e3f00491c6ea5438/Aspidites/parser/parser.py#L105


        (comparisonop, 2, opAssoc.LEFT),
    ],
).setParseAction(lambda t: ''.join(t[0]))
# TODO dict trigrams cause RecursionError:
#  maximum recursion depth exceeded while getting the str of an object

list_item = (  # Precedence important!!!
        slice_str
        | list_index
        # | dict_items
        # | dict_keys
        | list_count
        # | dict_vals
        | dict_discard
        | set_discard
        # | list_set
        | list_append
        # | dict_update
        # | set_update
        | dict_copy
        | set_copy
        | list_remove

43a59090c5622e7c20f130419a4b8d0a8a332530