insert sort, profile updates revamp
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -51,6 +51,10 @@ func parse_str(_ p: Parser, _ s: String) -> Bool {
|
||||
}
|
||||
|
||||
func parse_char(_ p: Parser, _ c: Character) -> Bool {
|
||||
if p.pos >= p.str.count {
|
||||
return false
|
||||
}
|
||||
|
||||
let ind = p.str.index(p.str.startIndex, offsetBy: p.pos)
|
||||
|
||||
if p.str[ind] == c {
|
||||
|
||||
Reference in New Issue
Block a user