abh - HTMLify profile

abh's Profile Picture

abh

509 Files

102923 Views

Latest files of /abh/learning/c/BPPL/Phase-2/command_parser

parser.h abh/learning/c/BPPL/Phase-2/command_parser/parser.h
12 Views
0 Comments
#include "tokens.h"

char **command_splitter(const char *command);

Token *tokenize(const char *command, int *count);

char *execute_command(const char *command);

tokens.h abh/learning/c/BPPL/Phase-2/command_parser/tokens.h
11 Views
0 Comments
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>

#ifndef VARIABLE_H
#define VARIABLE_H

// Variable
main.c abh/learning/c/BPPL/Phase-2/command_parser/main.c
7 Views
0 Comments
#include "tokens.h"
#include "parser.h"
#include <stdio.h>
#include <string.h>

int main() {
// test

tokens.c abh/learning/c/BPPL/Phase-2/command_parser/tokens.c
8 Views
0 Comments
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include "tokens.h"

Variable *Variables = NULL;
int Variables_count = 0;
parser.c abh/learning/c/BPPL/Phase-2/command_parser/parser.c
14 Views
0 Comments
#include "string.h"
#include "stdbool.h"
#include "tokens.h"
#include "parser.h"


int count_split_points(const char *command) {
int i, sc=0, cl = strlen(command);