gund / ng-dynamic-component

Dynamic components with full life-cycle support for inputs and outputs for Angular
https://malkevich-alex.gitbook.io/ng-dynamic-component/
MIT License
561 stars 65 forks source link

[WIP] [Feat] Template syntax parser #485

Open gund opened 2 years ago

gund commented 2 years ago

This is a POC to enable Angular templating syntax in IO input string as described in https://github.com/gund/ng-dynamic-component/discussions/484.

Template tokenizer is implemented as streamed tokenizer using async iterable protocol which allows to feed in chunks of strings asynchronously and get tokens as soon as possible with minimal memory footprint.

This will allow to create a streamed parser which will contribute in less peak memory usage and more distributed/chunked processing which should result in a better/smoother load on a thread.