summaryrefslogtreecommitdiff
path: root/engines/polyps/parser.go
blob: 346faf1615d8a2eb20e233d5c605ec1eba65a3e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package main

import (
	"ebnf";
	"fmt";
	"io";
)

func main() {
	src, e := io.ReadFile("polyps.ebnf");
	if e != nil {
		fmt.Println(e);
	}
	grammar, e := ebnf.Parse("polyps.ebnf", src);
	if e != nil { 
		fmt.Println(e); 
	}
	ebnf.Verify(grammar, "Polyp");

	
}