knitting_parser

A library designed to assist with parsing knitting patterns.
There seems to be no real standard for the syntax of a knitting pattern, so we are going to do our best at describing our own.
Syntax
- All stitch names are lower case
- A comma
,
separates stitches
- Stitches can be grouped in parenthesis
(
and )
- Multipliers can be provided after a group or stitch:
k x12
for twelve knits in a row
- Groups can be embedded:
(k, (p, ml)x2)x2
to produce k, p, ml, p, ml, k, p, ml, p, ml
Stitches
- 1lcf
- 1rcb
- 2lcf
- 2rcb
- 3lcf
- 3rcb
- 4lcf
- 4rcb
- bead
- bo
- bobble
- k
- k2tog
- kbf
- kfb
- ktbl
- m kwise
- m pwise
- ml
- mr
- nostitch
- p
- p2tog
- pbf
- pfb
- ptbl
- sl kwise
- sl pwise
- ssk
- ssp
- yo
Documentation
docs.rs