Skip to content

Commit

Permalink
help menu done
Browse files Browse the repository at this point in the history
  • Loading branch information
jweinst1 committed Jun 19, 2018
1 parent b6be781 commit f778557
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions include/LangInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,33 @@
#define LangInfo_REPL_INS "The Wind Programming Language REPL\nTo exit, simply enter 'exit'.\n"

#define LangInfo_HELP "The Wind Programming Language Help Guide\n \
save command: \n \
The save command allows you to save the current active data \n \
to a file path. This file is written in the Wind binary format.\n \
Using this allows you to save and load an infinite amount of states\n \
that Wind can operate and run from.\n \
__example__: push 3 5 -> map ** 4 | + 4 -> save \"nums\"\n \
Saved at: nums\n \
_______________________ \n \
A file named 'nums.bwind' will appear on disk. \n \
load command: \n \
The load command allows you to load binary wind files into the current active data. \n \
This command permits Wind to load data from an infinite number of sources, \n \
and expand it's processing capabilities to an immense degree. \n \
__example__: push 3 5 -> map ** 4 | + 4 -> save \"nums\" ->\n \
clr -> load \"nums\" -> out\n \
[ 85 629 ] \n \
reduce command: \n \
The reduce command fuses data through a flow of operations. \n \
It can be used with operations like +.\n \
__example__: push 3 3 3 3 3 -> reduce + -> out\n \
[ 15 ] \n \
filter command: \n \
The filer command restricts data through a flow of operations. \n \
It can be used with operations like < or > or !. \n \
__example__: push 5 4 -> map + 3 | * 3 -> out -> filter > 22 -> out \n \
[ 24 21 ]\n \
[ 24 ]\n \
map command: \n \
The map command transforms data through a flow of operations. \n \
It can be used with operations like +, - and more. \n \
Expand Down
2 changes: 1 addition & 1 deletion src/main/Main.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ int main(int argc, char const *argv[]) {
}
if(argc > 3)
{
fprintf(stderr, "Error, need two or less arguments, got %d\n", argc - 1);
fprintf(stderr, "Error, need two or less arguments, got %d.\n For help, run with flag '-h'\n", argc - 1);
exit(1);
}
else if(!strcmp(argv[1], "-c"))
Expand Down

0 comments on commit f778557

Please sign in to comment.