Css.css.simple: def of gralha-css-style@0.1.0.1 Import: import gralha-css-style@0.1.0.1/css.bend as Css Lines 200-214 of gralha-css-style@0.1.0.1/css.bend: https://jend.leeeet.dev/read.txt?path=gralha-css-style@0.1.0.1/css.bend&start_line=200&end_line=214 import Base import gralha-text-scan@0.1.0.1/scan.bend as U def css.simple(+fuel: Nat, +s: String, +context: CSSContext) -> Bool: match fuel s: case 0n _: False{} case 1n+d SNil{}: True{} case 1n+d SCon{Chr{c}, t}: U.branch(Bool, U32.is_eq(c, 42), _ => css.simple(d, t, context), _ => U.branch(Bool, U32.is_eq(c, 35) || U32.is_eq(c, 46), _ => css.simple.scan(css.ident(t, ""), context, c, rest => css.simple(d, rest, context)), _ => U.branch(Bool, U32.is_eq(c, 91), _ => css.simple.attr(css.scan(t, 93), context, rest => css.simple(d, rest, context)), _ => U.branch(Bool, U32.is_eq(c, 58), _ => css.simple.pseudo(css.ident(t, ""), context, rest => css.simple(d, rest, context), arg => css.simple(d, arg, context)), _ => css.simple.scan(css.ident(s, ""), context, 0, rest => css.simple(d, rest, context)))))) @unsafe Uses (13): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.or https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_eq https://jend.leeeet.dev/definition.txt?path=gralha-css-style@0.1.0.1/css.bend&name=CSSContext https://jend.leeeet.dev/definition.txt?path=gralha-css-style@0.1.0.1/css.bend&name=css.ident https://jend.leeeet.dev/definition.txt?path=gralha-css-style@0.1.0.1/css.bend&name=css.scan https://jend.leeeet.dev/definition.txt?path=gralha-css-style@0.1.0.1/css.bend&name=css.simple.attr https://jend.leeeet.dev/definition.txt?path=gralha-css-style@0.1.0.1/css.bend&name=css.simple.pseudo https://jend.leeeet.dev/definition.txt?path=gralha-css-style@0.1.0.1/css.bend&name=css.simple.scan https://jend.leeeet.dev/definition.txt?path=gralha-text-scan@0.1.0.1/scan.bend&name=branch