MCPcopy Create free account
hub / github.com/FastFlowLM/FastFlowLM / parse

Method parse

src/include/minja/minja.hpp:2688–2695  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2686public:
2687
2688 static std::shared_ptr<TemplateNode> parse(const std::string& template_str, const Options & options) {
2689 Parser parser(std::make_shared<std::string>(normalize_newlines(template_str)), options);
2690 auto tokens = parser.tokenize();
2691 TemplateTokenIterator begin = tokens.begin();
2692 auto it = begin;
2693 TemplateTokenIterator end = tokens.end();
2694 return parser.parseTemplate(begin, it, end, /* fully= */ true);
2695 }
2696};
2697
2698static Value simple_function(const std::string & fn_name, const std::vector<std::string> & params, const std::function<Value(const std::shared_ptr<Context> &, Value & args)> & fn) {

Callers 2

audio_utils.pyFile · 0.45
load_audioFunction · 0.45

Calls 5

normalize_newlinesFunction · 0.85
tokenizeMethod · 0.80
parseTemplateMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected