Skip to content

Pixelflut command parsing library written in Rust

Notifications You must be signed in to change notification settings

pixelflut-rs/pfparse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pfparse

Parse Pixelflut commands:

  • PX: Request and set command
  • SIZE: Request canvas size
  • HELP: Request help

Usage

let r = match pfparse::parse("PX 10 10 FFFFFF") {
    Ok(r) => r,
    Err(err) => panic!("{}", err),
};

r = (
    "",
    pfparse::Command::Pixel {
        is_req: false,
        x: 10,
        y: 10,
        c: 0
    }
)

About

Pixelflut command parsing library written in Rust

Topics

Resources

Stars

Watchers

Forks

Languages