Commit Diff


commit - 79f214478cb2c969a713b514eaef9496ab501490
commit + cf93616e2fd87a7de3dacc8905568b8a2a15b698
blob - fe6bb941ff7e1fb38488bb5c42014a9aeb8f961f
blob + 506fac03c62c8bd4723dc38b00cd5873f44e31f3
--- .gitignore
+++ .gitignore
@@ -1,3 +1,3 @@
+autovis
 target
-*.dv
 *.gif
blob - /dev/null
blob + 043c2fae158f3d58a85c30b8459b7487bc00f8af (mode 644)
--- /dev/null
+++ Makefile
@@ -0,0 +1,23 @@
+PREFIX = /usr/local
+
+SRC_RS != find src -name '*.rs'
+SRC = ${SRC_RS} src/grammar.pest
+
+CARGO = cargo
+
+all: autovis
+
+run: autovis
+	./autovis -o example.gif example.dv 011
+
+clean:
+	rm -rf target
+	rm -f autovis
+
+install: autovis
+	mkdir -p ${DESTDIR}${PREFIX}/bin
+	cp -f autovis ${DESTDIR}${PREFIX}/bin/
+
+autovis: ${SRC}
+	${CARGO} build --release
+	cp target/release/autovis .
blob - /dev/null
blob + 0ff6e4e4c62c4449b7a609b6df512475135f402c (mode 644)
--- /dev/null
+++ example.dv
@@ -0,0 +1,10 @@
+nodes {
+	q0 : begin;
+	q1 : end;
+}
+
+edges {
+	q0 -> q0 "0";
+	q0 -> q1 "1";
+	q1 -> q1 "1";
+}