better help message
authorLaurent Mazet <mazet@softndesign.org>
Thu, 2 Feb 2023 22:16:54 +0000 (23:16 +0100)
committerLaurent Mazet <mazet@softndesign.org>
Thu, 2 Feb 2023 22:16:54 +0000 (23:16 +0100)
parser.c

index 9e7e51013e3a050f04a8c48c9e28aa1e971be542..aecaae3d3b3a9bcefc7db4e39a93e397cbbaad0b 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -962,19 +962,21 @@ void help (void)
     fprintf (stdout, "logical operators:");
     fprintf (stdout, " & | !\n");
     fprintf (stdout, "mathematic functions:");
-    fprintf (stdout, " pow sqrt log exp\n");
+    fprintf (stdout, " exp ln log pow sqrt\n");
     fprintf (stdout, "trig. func.:");
-    fprintf (stdout, " cos sin tan acos asin atan\n");
+    fprintf (stdout, " acos asin atan cos sin tan\n");
     fprintf (stdout, "supported functions:");
     fprintf (stdout, " abs ceil floor\n");
-    fprintf (stdout, "storage functions:");
-    fprintf (stdout, " mem sto rcl inc dec disp\n");
+    fprintf (stdout, "stor. functions:");
+    fprintf (stdout, " clear dec disp inc mem rcl sto\n");
+    fprintf (stdout, "cond. functions:");
+    fprintf (stdout, " cond print while {} ;\n");
     fprintf (stdout, "prog. functions:");
-    fprintf (stdout, " cond while print {} ;\n");
+    fprintf (stdout, " call del edit ls prog\n");
     fprintf (stdout, "misc. functions:");
-    fprintf (stdout, " quit help\n");
+    fprintf (stdout, " help quit\n");
     fprintf (stdout, "supported constants:");
-    fprintf (stdout, " e pi\n");
+    fprintf (stdout, " ans e pi\n");
 }
 
 /* evaluate element tree */