Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3dccc90

Browse files
committed
README.md: added the Tools and Building sections
1 parent700ebbd commit3dccc90

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

‎README.md‎

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,27 @@
11
#automata
22
This is a kind of generic FSA implementation.
3-
It was written to handle keystrokes, so there are no accepting states but each transition can trigger actions:
3+
It was written to handle keystrokes, so there are no accepting states
4+
but each transition can trigger actions:
45
- printing constant strings in the terminal:`print "hi!"`
56
- broadcasting the same kind of strings in UDP:`bc 2000 "HELLO EVERYONE"`
67

78
Combinators allow you prioritizing automata:
89
-`a < b` will produce`b`'s actions when`a` doesn't
910
-`a || b` will produce (at each step) actions from`a` and`b`, in this order
1011

11-
#Examples
12-
##A cash register simulator
12+
##Tools
13+
-`server.ml` is a UDP server (for pranks, etc.)
14+
-`run.ml` is a combinator tester
15+
-`dot.ml` converts FSAs to graphs (see_Examples_ below)
16+
17+
##Building
18+
```
19+
opam install ocamlbuild menhir
20+
ocamlbuild -lib unix -use-menhir dot.byte run.byte server.byte
21+
```
22+
23+
##Examples
24+
###A cash register simulator
1325
Running
1426
```
1527
./dot.byte cashregister.aut |dot -Tpng >cashregister.png

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp