MCPcopy Index your code
hub / github.com/endbasic/endbasic / is_separator

Method is_separator

core/src/lexer.rs:215–221  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

213
214impl CharOps for char {
215 fn is_separator(&self) -> bool {
216 match *self {
217 '\n' | ':' | '(' | ')' | '\'' | '=' | '<' | '>' | ';' | ',' | '+' | '-' | '*' | '/'
218 | '^' => true,
219 ch => ch.is_space(),
220 }
221 }
222
223 fn is_space(&self) -> bool {
224 // TODO(jmmv): This is probably not correct regarding UTF-8 when comparing this function to

Callers 6

handle_bad_readMethod · 0.80
consume_numberMethod · 0.80
consume_integerMethod · 0.80
consume_symbolMethod · 0.80
consume_labelMethod · 0.80

Calls 1

is_spaceMethod · 0.80

Tested by

no test coverage detected