pass_parser
[mala.git] / std / std_init.c
blob1576b552322cdb0726b36322e3a8a7b2c7895caf
1 /*
2 std_init.c - MaLa standard module initialization table
4 Copyright (C) 2005, 2006, Christian Thaeter <ct@pipapo.org>
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License version 2 as
8 published by the Free Software Foundation.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, contact me.
20 #include <stdio.h>
21 #include <string.h>
23 #include "mala.h"
24 #include "std.h"
26 static
27 mala_actioninit std_actions[] =
30 MALA_PARSER("--", mala__parser, NULL, NULL, NULL),
31 MALA_PARSER_BRIEF("--", ""),
32 MALA_PARSER_HELP("--", ("TODO")),
33 MALA_PARSER_SIGNATURE_TYPE("--", ("")),
34 MALA_PARSER_SIGNATURE_USAGE("--", ("")),
35 MALA_PARSER_RESULT_TYPE("--", ("")),
36 MALA_PARSER_RESULT_USAGE("--", ("")),
39 MALA_PARSER("--CHILDOF", mala__parser, NULL, NULL, NULL),
40 MALA_PARSER_BRIEF("--", ""),
41 MALA_PARSER_HELP("--", ("TODO")),
42 MALA_PARSER_SIGNATURE_TYPE("--", ("")),
43 MALA_PARSER_SIGNATURE_USAGE("--", ("")),
44 MALA_PARSER_RESULT_TYPE("--", ("")),
45 MALA_PARSER_RESULT_USAGE("--", ("")),
47 MALA_PARSER("--FOREACH-WORD", mala_foreach_word_parser, NULL, NULL, NULL),
48 MALA_PARSER_BRIEF("--", ""),
49 MALA_PARSER_HELP("--", ("TODO")),
50 MALA_PARSER_SIGNATURE_TYPE("--", ("")),
51 MALA_PARSER_SIGNATURE_USAGE("--", ("")),
52 MALA_PARSER_RESULT_TYPE("--", ("")),
53 MALA_PARSER_RESULT_USAGE("--", ("")),
56 //MALA_SUBSTITUTE_PARSER("--MALA-VERSION","MaLa 0.2 ("__DATE__" "__TIME__")"),
57 //MALA_PARSER_BRIEF("--MALA-VERSION", "Holds the version"),
59 //MALA_SUBSTITUTE_PARSER("--DEFAULT-PARSER","--LITERAL"),
60 //MALA_PARSER_BRIEF("--DEFAULT-PARSER", "is used for any word which has no associated action"),
61 // MALA_PARSER_HELP("--DEFAULT-PARSER", ("TODO")),
62 // MALA_PARSER_SIGNATURE_TYPE("--", ("")),
63 // MALA_PARSER_SIGNATURE_USAGE("--", ("")),
64 // MALA_PARSER_RESULT_TYPE("--", ("")),
65 // MALA_PARSER_RESULT_USAGE("--", ("")),
67 //MALA_TRUE_PARSER("--FLAG-NUMSPLIT-EXPANSION"),
68 // MALA_PARSER_BRIEF("--FLAG-NUMSPLIT-EXPANSION", "TODO"),
69 // MALA_PARSER_HELP("--FLAG-NUMSPLIT-EXPANSION", ("TODO")),
71 //MALA_TRUE_PARSER("--FLAG-LITERAL-EXPANSION"),
72 //MALA_PARSER_BRIEF("--FLAG-LITERAL-EXPANSION",
73 // "words beginning with a single backquote will be "
74 // "preprocessed as '--LITERAL' 'theword'"),
75 // MALA_PARSER_HELP("--FLAG-LITERAL-EXPANSION", ("TODO")),
77 //MALA_TRUE_PARSER("--FLAG-EXCLAM-EXPANSION"),
78 //MALA_PARSER_BRIEF("--FLAG-EXCLAM-EXPANSION",
79 // "a single ! will be preprocessed as --NOT"),
80 // MALA_PARSER_HELP("--FLAG-EXCLAM-EXPANSION", ("TODO")),
82 //MALA_TRUE_PARSER("--FLAG-NO-EXPANSION"),
83 // MALA_PARSER_BRIEF("--", ""),
84 // MALA_PARSER_HELP("--", ("TODO")),
86 //MALA_TRUE_PARSER("--FLAG-ASSIGN-EXPANSION"),
87 // MALA_PARSER_BRIEF("--", ""),
88 // MALA_PARSER_HELP("--", ("TODO")),
90 //MALA_TRUE_PARSER("--FLAG-ENVVAR-EXPANSION"),
91 // MALA_PARSER_BRIEF("--", ""),
92 // MALA_PARSER_HELP("--", ("TODO")),
94 //MALA_TRUE_PARSER("--FLAG-CHAR-EXPANSION"),
95 // MALA_PARSER_BRIEF("--", ""),
96 // MALA_PARSER_HELP("--", ("TODO")),
98 //MALA_TRUE_PARSER("--FLAG-UNDERSCORE-EXPANSION"),
99 // MALA_PARSER_BRIEF("--", ""),
100 // MALA_PARSER_HELP("--", ("TODO")),
102 //MALA_TRUE_PARSER("--FLAG-SETENV-EXPANSION"),
103 // MALA_PARSER_BRIEF("--", ""),
104 // MALA_PARSER_HELP("--", ("TODO")),
106 //MALA_TRUE_PARSER("--FLAG-BRACKET-EXPANSION"),
107 // MALA_PARSER_BRIEF("--", ""),
108 // MALA_PARSER_HELP("--", ("TODO")),
110 //MALA_TRUE_PARSER("--FLAG-ASSIGN-CONTRACTION"),
111 // MALA_PARSER_BRIEF("--", ""),
112 // MALA_PARSER_HELP("--", ("TODO")),
116 // TODO remove this
117 //MALA_EXPAND_PARSER("TESTLIST",("TEST","LIST")),
120 MALA_ACTIONS_END
124 mala_module_std_init (MalaEngine self)
126 (void)( // prevent 'warning: value computed is not used'
127 mala_engine_actions_register (self, std_actions) == MALA_SUCCESS &&
128 mala_module_std_io_init (self) == MALA_SUCCESS &&
129 mala_module_std_strings_init (self) == MALA_SUCCESS &&
130 mala_module_std_statements_init (self) == MALA_SUCCESS &&
131 mala_module_std_macros_init (self) == MALA_SUCCESS
134 return mala_engine_state_get (self);
138 // Local Variables:
139 // mode: C
140 // c-file-style: "gnu"
141 // End:
142 // arch-tag: e6d43941-2533-4f28-863e-2dd3128e58bb
143 // end_of_file