MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / parse_space

Function parse_space

common/grammar-parser.cpp:76–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74 }
75
76 static const char * parse_space(const char * src, bool newline_ok) {
77 const char * pos = src;
78 while (*pos == ' ' || *pos == '\t' || *pos == '#' ||
79 (newline_ok && (*pos == '\r' || *pos == '\n'))) {
80 if (*pos == '#') {
81 while (*pos && *pos != '\r' && *pos != '\n') {
82 pos++;
83 }
84 } else {
85 pos++;
86 }
87 }
88 return pos;
89 }
90
91 static const char * parse_name(const char * src) {
92 const char * pos = src;

Callers 4

parse_sequenceFunction · 0.70
parse_alternatesFunction · 0.70
parse_ruleFunction · 0.70
parseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected