Skip to content

Commit b9dfbca

Browse files
committed
Clean everything from metacallcli old parser.
1 parent 1400288 commit b9dfbca

File tree

8 files changed

+137
-1172
lines changed

8 files changed

+137
-1172
lines changed

source/cli/metacallcli/CMakeLists.txt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,13 @@ include(SecurityFlags)
2525
#
2626

2727
set(include_path "${CMAKE_CURRENT_SOURCE_DIR}/include/${target}")
28-
set(inline_path "${CMAKE_CURRENT_SOURCE_DIR}/inline/${target}")
2928
set(source_path "${CMAKE_CURRENT_SOURCE_DIR}/source")
3029

3130
set(headers
32-
${include_path}/tokenizer.hpp
33-
${include_path}/parser.hpp
3431
${include_path}/application.hpp
3532
)
3633

37-
set(inline
38-
${inline_path}/parser.inl
39-
)
40-
4134
set(sources
42-
${source_path}/tokenizer.cpp
43-
${source_path}/parser.cpp
4435
${source_path}/application.cpp
4536
${source_path}/main.cpp
4637
)
@@ -97,9 +88,6 @@ target_include_directories(${target}
9788
${PROJECT_BINARY_DIR}/source/include
9889
${CMAKE_CURRENT_SOURCE_DIR}/include
9990
${CMAKE_CURRENT_BINARY_DIR}/include
100-
${PROJECT_BINARY_DIR}/source/inline
101-
${CMAKE_CURRENT_SOURCE_DIR}/inline
102-
${CMAKE_CURRENT_BINARY_DIR}/inline
10391
${DEFAULT_INCLUDE_DIRECTORIES}
10492

10593
PUBLIC

source/cli/metacallcli/include/metacallcli/application.hpp

Lines changed: 1 addition & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,6 @@
2323

2424
namespace metacallcli
2525
{
26-
/* -- Forward Declarations -- */
27-
28-
class tokenizer;
29-
30-
class parser;
31-
class parser_parameter;
32-
33-
class application;
34-
3526
/* -- Class Definition -- */
3627

3728
/**
@@ -67,18 +58,6 @@ class application
6758
*/
6859
void run(void);
6960

70-
/**
71-
* @brief
72-
* Create a new value from arguments with parser @p
73-
*
74-
* @param[in] p
75-
* Parser which points to the current iterator of the string
76-
*
77-
* @return
78-
* Return a new value instanced if argument was correct
79-
*/
80-
void *argument_parse(parser_parameter &p);
81-
8261
protected:
8362
/* -- Protected Methods -- */
8463

@@ -98,91 +77,19 @@ class application
9877
*/
9978
bool load_path(const char *path, void **handle);
10079

101-
/**
102-
* @brief
103-
* Print a value @v in a readable form on error (throwable)
104-
*
105-
* @param[in] v
106-
* Value to be printed
107-
*
108-
*/
109-
void print(void *v);
110-
111-
/**
112-
* @brief
113-
* Invoke a function and print the result on error
114-
*
115-
* @param[in] func
116-
* Command name matching the function registered from the plugins
117-
*
118-
* @param[in] args
119-
* Function arguments as values
120-
*
121-
* @param[in] size
122-
* Size of arguments
123-
*
124-
*/
125-
void invoke(const char *func, void *args[], size_t size);
126-
12780
/**
12881
* @brief
12982
* Execute a command with string parameters
13083
*
13184
* @param[inout] tokens
132-
* Array of values containing all the tokens of the input command
85+
* Value of type array containing all the tokens of the input command
13386
*
13487
* @return
13588
* Return result of the command execution
13689
*/
13790
void *execute(void *tokens);
13891

13992
private:
140-
/* -- Private Class Definition -- */
141-
142-
class parameter_iterator
143-
{
144-
public:
145-
/* -- Public Methods -- */
146-
147-
/**
148-
* @brief
149-
* Initialize parameter iterator
150-
*
151-
* @param[in] app
152-
* Reference to the application
153-
*/
154-
parameter_iterator(application &app);
155-
156-
/**
157-
* @brief
158-
* Parameter iterator class destructor
159-
*/
160-
~parameter_iterator();
161-
162-
/**
163-
* @brief
164-
* Operator callback for iteration
165-
*
166-
* @param[in] parameter
167-
* Current parameter being iterated
168-
*/
169-
void operator()(const char *parameter);
170-
171-
/**
172-
* @brief
173-
* Assignement operator for parameter iterator
174-
*
175-
* @return
176-
* Returns a reference to itself
177-
*/
178-
parameter_iterator &operator=(const parameter_iterator &) = delete;
179-
180-
private:
181-
/* -- Private Member Data -- */
182-
183-
application &app; /**< Reference to the application */
184-
};
185-
18693
/* -- Private Member Data -- */
18794

18895
void *plugin_cli_handle; /**< Handle containing all loaded plugins for CLI */

source/cli/metacallcli/include/metacallcli/parser.hpp

Lines changed: 0 additions & 231 deletions
This file was deleted.

0 commit comments

Comments
 (0)