MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / fxIsToken

Function fxIsToken

xs/sources/xsSyntaxical.c:527–535  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

525}
526
527txBoolean fxIsToken(txParser* parser, txToken theToken)
528{
529 txBoolean result = (parser->states[0].token == theToken) ? 1 : 0;
530 if (result) {
531 if (parser->states[0].escaped)
532 fxReportParserError(parser, parser->states[0].line, "escaped keyword");
533 }
534 return result;
535}
536
537void fxMatchToken(txParser* parser, txToken theToken)
538{

Callers 1

xsSyntaxical.cFile · 0.85

Calls 1

fxReportParserErrorFunction · 0.85

Tested by

no test coverage detected