Created
January 2, 2013 15:57
-
-
Save raphink/4435532 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Tty = | |
let entry = | |
let dev = [ label "dev" . store Rx.fspath ] | |
in let rate = [ label "rate" . store Rx.integer ] | |
in Build.key_value_line Rx.word Sep.space (dev . Sep.space . rate) | |
test entry get "stty /dev/cuaU0 9600\n" = | |
{ "stty" | |
{ "dev" = "/dev/cuaU0" } | |
{ "rate" = "9600" } } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment