asm/lex.c
static char lex_potentially_escaped(struct Context *ctx, struct Token *token) {
    bool escaped = *ctx->current == '\\';

    asmchk(
        !escaped || isprint(*(ctx->current + 1)), ctx, token,
        "Expected character to escape"
    );

    char c = escaped ? *(ctx->current + 1) : *ctx->current;

    if (escaped) {
        c = escchar(c);
    }

    ctx->current += escaped ? 2 : 1;
    return c;
}
// lexes a potentially escaped charater, returning its escaped value if
// applicable. otherwise just returns the character.
lexes a potentially escaped charater, returning its escaped value if
applicable. otherwise just returns the character.
lexes a potentially escaped charater returning its escaped value if applicable . otherwise just returns the character .
static char lex_potentially_escaped(struct Context *ctx, struct Token *token) {
    bool escaped = *ctx->current == '\\';
    asmchk(
        !escaped || isprint(*(ctx->current + 1)), ctx, token,
        "Expected character to escape"
    );
    char c = escaped ? *(ctx->current + 1) : *ctx->current;
    if (escaped) {
        c = escchar(c);
    }
    ctx->current += escaped ? 2 : 1;
    return c;
}
static char lex_potentially_escaped ( struct Context * ctx , struct Token * token ) { bool escaped = * ctx -> current == ' \\ ' ; asmchk ( ! escaped || isprint ( * ( ctx -> current + 1 ) ) , ctx , token , " " ) ; char c = escaped ? * ( ctx -> current + 1 ) : * ctx -> current ; if ( escaped ) { c = escchar ( c ) ; } ctx -> current += escaped ? 2 : 1 ; return c ; }
lexes a potentially escaped charater, returning its escaped value if
applicable.
lexes a potentially escaped charater returning its escaped value if applicable .