☰
Debian Codegraph
@
0.8.5-1
/
/
tests
/
run-pass
/
no_eof.rs
☽
☼
tests/run-pass/no_eof.rs
code
plain
raw
symbols
SCIP
Expat
2013 Kevin Mehall <
[email protected]
>
debian/copyright
1
extern
crate
peg;
2
use
peg::parser;
3
4
parser
!
{
5
pub
grammar g()
for
[
u8
] {
6
#[no_eof]
7
pub
rule foo() =
"foo"
8
}
9
}
10
11
fn
main
() {
12
assert_eq
!
(g::foo(
b"foobar"
),
Ok
(()));
13
}