Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pga
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
pga
Commits
739a8a89
Commit
739a8a89
authored
Jul 03, 2014
by
Taddeüs Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added some empty commands
parent
682819d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
pga.ml
pga.ml
+7
-1
No files found.
pga.ml
View file @
739a8a89
...
@@ -7,12 +7,16 @@ let main () =
...
@@ -7,12 +7,16 @@ let main () =
prerr_endline
"command:"
;
prerr_endline
"command:"
;
prerr_endline
" help show this help page"
;
prerr_endline
" help show this help page"
;
prerr_endline
" echo TERM pretty-print a program"
;
prerr_endline
" echo TERM pretty-print a program"
;
prerr_endline
" norm TERM get the norm of a program"
;
prerr_endline
" i TERM get the ith instruction of a program"
;
prerr_endline
" dot TERM generate Dot code for a flow graph"
;
prerr_endline
"input program syntax:"
;
prerr_endline
"input program syntax:"
;
prerr_endline
" - write star (*) instead of omega sign"
;
prerr_endline
" - write star (*) instead of omega sign"
;
prerr_endline
" - write dollar sign ($) instead of pound sign"
;
prerr_endline
" - write dollar sign ($) instead of pound sign"
;
prerr_endline
""
;
prerr_endline
""
;
prerr_endline
"A TERM argument may also be omitted and passed on stdin"
;
prerr_endline
"A TERM argument may also be omitted and passed on stdin"
;
prerr_endline
"instead for convenient use of UNIX pipes"
;
prerr_endline
"instead for convenient use of UNIX pipes, e.g.:"
;
prerr_endline
"$ ./pga echo 'a;b;(c)*' | ./pga dot | dot -T png | display"
;
exit
status
exit
status
in
in
...
@@ -35,6 +39,8 @@ let main () =
...
@@ -35,6 +39,8 @@ let main () =
usage
0
usage
0
|
"echo"
->
|
"echo"
->
print_endline
(
string_of_program
(
input_term
2
))
print_endline
(
string_of_program
(
input_term
2
))
|
"norm"
|
"i"
|
"dot"
->
raise
(
Failure
"not implemented"
)
|
_
->
|
_
->
usage
1
usage
1
with
with
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment