Fixed #3: Added sheerka.resolve_rule()
Fixed #5: Refactored SheerkaComparisonManager Fixed #6: Sya parser no longer works after restart
This commit is contained in:
+9
-1
@@ -5,9 +5,10 @@ import os
|
||||
import pkgutil
|
||||
from copy import deepcopy
|
||||
|
||||
from pyparsing import *
|
||||
|
||||
from core.global_symbols import CustomType
|
||||
from core.tokenizer import TokenKind, Tokenizer
|
||||
from pyparsing import *
|
||||
|
||||
COLORS = {
|
||||
"black",
|
||||
@@ -600,6 +601,13 @@ def flatten_all_children(item, get_children):
|
||||
return inner_get_all_children(item)
|
||||
|
||||
|
||||
def flatten(list_of_lists):
|
||||
"""
|
||||
Flatten an list containing other lists
|
||||
"""
|
||||
return [item for sublist in list_of_lists for item in sublist]
|
||||
|
||||
|
||||
def get_text_from_tokens(tokens, custom_switcher=None, tracker=None):
|
||||
"""
|
||||
Create the source code, from the list of token
|
||||
|
||||
Reference in New Issue
Block a user