15 lines
451 B
Python
15 lines
451 B
Python
from bu4.evaluation.constructs.evalue import EValue
|
|
from bu4.evaluation.sync import sync
|
|
from bu4.linking.evaluable_from_parsed import evaluable_from_parsed
|
|
from bu4.parsing.toolchain.parse import parse
|
|
from bu4.parsing.toolchain.transply import transply
|
|
|
|
__all__ = ('synced',)
|
|
|
|
|
|
def synced(source: str) -> EValue:
|
|
bsource = transply(source)
|
|
parsed = parse(bsource)
|
|
evaluable = evaluable_from_parsed({}, parsed)
|
|
return sync(evaluable)
|