Log in Register Dashboard Temp Share Shortlinks Frames API

abh - HTMLify profile

abh's Profile Picture

abh

523 Files

134644 Views

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

parser.h abh/learning/c/BPPL/Phase-2/command_parser/parser.h
52 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
44 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
72 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
45 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
51 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);