Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pga
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Taddeüs Kroes
pga
Commits
739a8a89
Commit
739a8a89
authored
10 years ago
by
Taddeüs Kroes
Browse files
Options
Downloads
Patches
Plain Diff
Added some empty commands
parent
682819d4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pga.ml
+7
-1
7 additions, 1 deletion
pga.ml
with
7 additions
and
1 deletion
pga.ml
+
7
−
1
View file @
739a8a89
...
...
@@ -7,12 +7,16 @@ let main () =
prerr_endline
"command:"
;
prerr_endline
" help show this help page"
;
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
" - write star (*) instead of omega sign"
;
prerr_endline
" - write dollar sign ($) instead of pound sign"
;
prerr_endline
""
;
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
in
...
...
@@ -35,6 +39,8 @@ let main () =
usage
0
|
"echo"
->
print_endline
(
string_of_program
(
input_term
2
))
|
"norm"
|
"i"
|
"dot"
->
raise
(
Failure
"not implemented"
)
|
_
->
usage
1
with
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment