// Code generated by re2v, DO NOT EDIT.
// re2v $INPUT -o $OUTPUT -i



fn lex_unsigned(str []u8) bool {
    mut cur := 0
    
    mut yych := u8(0)
    yych = str[cur]
    if yych >= 0xFF {
        unsafe { goto yy1 }
    }
    cur +=1;
    return false
yy1:
    cur +=1;
    return true

}

fn lex_signed(str []u8) bool {
    mut cur := 0
    
    mut yych := i8(0)
    yych = i8(str[cur])
    if yych >= 0xFF {
        unsafe { goto yy3 }
    }
    cur +=1;
    return false
yy3:
    cur +=1;
    return true

}

fn main() {
    s := [u8(0xff)]
    assert lex_unsigned(s)
    assert !lex_signed(s) // error - lexer works incorrectly
}
