Giter Site home page Giter Site logo

knitting_parser's Introduction

knitting_parser

LICENSE Rust Crates.io Version

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
  • Line starting with ## are for options
    • in_round : used to say the pattern is in the round.
    • start_wrong_side : used to say the pattern starts on the wrong side.
    • first_line=X : used to say the first line is X
  • Lines starting with # are ignored

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.