Skip to content

Commit 609cc27

Browse files
author
Arthur Melton
committed
more stuff in lexer
1 parent 0b359a7 commit 609cc27

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Makefile

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
all:
2-
g++ ./src/*.cpp -o main.out
3-
check:
4-
2+
g++ ./src/*.cpp -o main.out

src/lexer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include "trim.h"
33

44
char quotes_array[] = {'\"', '\'', '`'};
5-
char splits_array[] = {'(', ')', ';', ')', '\\'};
5+
char splits_array[] = {'(', ')', ';', '\\', '{', '}', '[', ']'};
66
char empty_array[] = {' ', '\n', '\t', '\r', '\f', '\v'};
77

88
stack<string> lexer_return(string contents) {

0 commit comments

Comments
 (0)