~sircmpwn/scheduled

scheduled/schedule/parse.ha -rw-r--r-- 283 bytes
1db951c7Sebastian Makefile: add all to .PHONY target 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use bufio;
use io;

export type error = !io::error;

export type parser = struct {
	in: io::handle,
	lineno: (uint, uint),
};

// Creates a new schedule parser for the given I/O handle.
export fn parse(in: io::handle) parser = {
	return parser {
		in = in,
		lineno = (1, 1),
	};
};