AntoHesse
|
dc423db858
|
stack is now a beautiful linked list
|
2017-03-04 02:17:06 +01:00 |
|
AntoHesse
|
af311380f4
|
further streamile grammar around pipe
|
2017-03-04 01:26:20 +01:00 |
|
Antoine Riard
|
b4fdc05f64
|
ast free
|
2017-03-03 20:12:57 +01:00 |
|
Antoine Riard
|
29692ef8fa
|
ast free
|
2017-03-03 20:02:53 +01:00 |
|
Jack Halford
|
20e96b751f
|
pipes work
|
2017-03-03 18:50:13 +01:00 |
|
Jack Halford
|
2926a9d00d
|
merged pda_execution
|
2017-03-03 17:33:36 +01:00 |
|
Antoine Riard
|
d0b821c483
|
pipe fix grammar + assignement word parsing
|
2017-03-03 17:19:39 +01:00 |
|
Antoine Riard
|
b90a17f2fa
|
googd redir
|
2017-03-03 14:37:22 +01:00 |
|
AntoHesse
|
37d815cb57
|
fuck it
|
2017-03-03 02:36:25 +01:00 |
|
AntoHesse
|
b9d8b949be
|
perdu entre les 2 libs de lst :( to-do tomorroz
|
2017-03-03 02:00:15 +01:00 |
|
AntoHesse
|
7f82901608
|
Merge branch 'pda' of https://github.com/jzck/minishell into pda
"need"
|
2017-03-03 00:05:41 +01:00 |
|
AntoHesse
|
75f1da13f2
|
before pull
|
2017-03-03 00:05:37 +01:00 |
|
Antoine Riard
|
37d9898f59
|
doing pipe + lst cmds
|
2017-03-02 22:02:53 +01:00 |
|
Jack Halford
|
3857b06785
|
execution much simpler with new parser, thx ariard!
|
2017-03-02 21:17:16 +01:00 |
|
ariard@student.42.fr
|
722a290aee
|
yale sauf subshell
|
2017-03-01 23:01:43 +01:00 |
|
ariard@student.42.fr
|
aa9097575d
|
rewef
|
2017-03-01 18:04:29 +01:00 |
|
ariard@student.42.fr
|
9f9d799bbe
|
merge fixed
|
2017-03-01 16:28:44 +01:00 |
|
ariard@student.42.fr
|
f5fafb4c19
|
before pull
|
2017-03-01 16:25:53 +01:00 |
|
ariard@student.42.fr
|
871b4da000
|
test
|
2017-02-28 19:28:01 +01:00 |
|
AntoHesse
|
9c0984658e
|
exec flow control
|
2017-02-26 01:13:47 +01:00 |
|
AntoHesse
|
a154aa85b6
|
eof syntax good
|
2017-02-25 22:34:38 +01:00 |
|
ariard@student.42.fr
|
8c8ee2152e
|
parsing heredoc doing
|
2017-02-25 20:36:27 +01:00 |
|
ariard@student.42.fr
|
eeb0887081
|
commit from un cluster qui marche aka new redir
|
2017-02-25 19:31:02 +01:00 |
|
ariard@student.42.fr
|
7b1d505a5b
|
gen func ok, todo: multi branch declaration, probleme lexer sur brackets
|
2017-02-25 00:31:51 +01:00 |
|
ariard@student.42.fr
|
102196bff4
|
parsing brace_clause + func def ok
|
2017-02-24 23:17:29 +01:00 |
|
ariard@student.42.fr
|
f703185a3a
|
assignement word lexing parsing
|
2017-02-24 21:00:38 +01:00 |
|
ariard@student.42.fr
|
a3c750494f
|
good code
|
2017-02-24 19:32:45 +01:00 |
|
ariard@student.42.fr
|
0461285d95
|
subshell et case ok
|
2017-02-24 19:30:20 +01:00 |
|
ariard@student.42.fr
|
d50a0d1b13
|
parsing for ok
|
2017-02-24 16:29:51 +01:00 |
|
ariard@student.42.fr
|
5f596310e1
|
nesting case ok
|
2017-02-24 15:32:56 +01:00 |
|
ariard@student.42.fr
|
d251474db9
|
erase error
|
2017-02-24 14:52:04 +01:00 |
|
ariard@student.42.fr
|
ecc058dd11
|
still case
|
2017-02-23 22:55:17 +01:00 |
|
AntoHesse
|
79bceb05a9
|
trop fatigue pour debug les case nesting, fuck it, todo tomorrow
|
2017-02-23 01:55:09 +01:00 |
|
AntoHesse
|
03238b2042
|
fucking case grammar done
|
2017-02-22 22:04:45 +01:00 |
|
AntoHesse
|
50da96bbd6
|
on a retrpuve la compagnie TK_PAREN
|
2017-02-22 20:25:51 +01:00 |
|
AntoHesse
|
2fbea4837d
|
gramamr for
|
2017-02-22 19:50:29 +01:00 |
|
AntoHesse
|
268c5fb46e
|
syntax error + coordination parser etat
|
2017-02-22 18:36:32 +01:00 |
|
AntoHesse
|
5976d0d281
|
grammar case part 1 motherfucker
|
2017-02-22 01:43:25 +01:00 |
|
ariard@student.42.fr
|
49b79603b3
|
insert newline add
|
2017-02-21 22:45:59 +01:00 |
|
ariard@student.42.fr
|
04c4978c35
|
Merge branch 'pda' of https://github.com/jzck/42sh into pda
"conflict resolved"
|
2017-02-21 20:33:12 +01:00 |
|
ariard@student.42.fr
|
fffb8c74a5
|
before pull main clean
|
2017-02-21 20:29:46 +01:00 |
|
Jack Halford
|
ec79b05131
|
new instruction handler looks good
|
2017-02-21 20:21:52 +01:00 |
|
ariard@student.42.fr
|
07c2101df4
|
EOF error add
|
2017-02-21 18:15:21 +01:00 |
|
ariard@student.42.fr
|
d05cec4962
|
include + parser state
|
2017-02-21 16:46:13 +01:00 |
|
ariard@student.42.fr
|
58473871ca
|
ok
|
2017-02-21 15:22:11 +01:00 |
|
ariard@student.42.fr
|
62a8832823
|
before pull
|
2017-02-21 14:36:32 +01:00 |
|
Jack Halford
|
c04006a471
|
fixed some merging problems : it compiles now
|
2017-02-20 22:41:02 +01:00 |
|
ariard@student.42.fr
|
8d23821d69
|
after mege
|
2017-02-20 21:05:12 +01:00 |
|
ariard@student.42.fr
|
ca56489f13
|
before merge master
|
2017-02-20 19:52:38 +01:00 |
|
ariard@student.42.fr
|
cdfc6c6d55
|
until ok
|
2017-02-20 18:58:46 +01:00 |
|
ariard@student.42.fr
|
597afe06d0
|
nesting condition ok
|
2017-02-20 18:17:37 +01:00 |
|
ariard@student.42.fr
|
d9375e853a
|
else ok nesting coming
|
2017-02-20 17:25:53 +01:00 |
|
ariard@student.42.fr
|
2e012b3e91
|
if elif ok, else coming
|
2017-02-20 17:20:34 +01:00 |
|
ariard@student.42.fr
|
3d65d42708
|
grammar if stable
|
2017-02-20 16:07:54 +01:00 |
|
AntoHesse
|
fea9429e9f
|
more if elif then else grammar
|
2017-02-20 01:05:11 +01:00 |
|
ariard@student.42.fr
|
f6aefd7739
|
grammar if then elif part one
|
2017-02-19 19:32:45 +01:00 |
|
ariard@student.42.fr
|
c90ad14f93
|
while ok
|
2017-02-19 17:53:43 +01:00 |
|
ariard@student.42.fr
|
fbce14ef34
|
modifs gestion d'erreur
|
2017-02-19 16:55:06 +01:00 |
|
ariard@student.42.fr
|
6609e3b8d9
|
while one nest ok
|
2017-02-18 20:10:42 +01:00 |
|
ariard@student.42.fr
|
96e439b652
|
parsing while simple ok
|
2017-02-17 23:43:44 +01:00 |
|
ariard@student.42.fr
|
4ef7af6e20
|
while error check doing
|
2017-02-17 19:49:12 +01:00 |
|
ariard@student.42.fr
|
b0a3e63ffc
|
modif redirect list
|
2017-02-17 17:15:58 +01:00 |
|
AntoHesse
|
7f83e231aa
|
&& ||
|
2017-02-17 02:38:56 +01:00 |
|
AntoHesse
|
7477cb4c0d
|
debug exec ou parsing
|
2017-02-16 17:35:44 +01:00 |
|
ariard@student.42.fr
|
185ed2ebd3
|
gen ast en cours
|
2017-02-15 20:58:41 +01:00 |
|
ariard@student.42.fr
|
fc37e7999a
|
Merge branch 'pda' of https://github.com/jzck/minishell into pda
"work last night"
|
2017-02-15 18:31:49 +01:00 |
|
ariard@student.42.fr
|
78a2dafe50
|
before merge with clean dir
|
2017-02-15 18:31:37 +01:00 |
|
AntoHesse
|
8e05bba1c6
|
less code is better
|
2017-02-15 02:22:05 +01:00 |
|
Jack Halford
|
16cfada91f
|
heredoc redirection done, looks to work OK
|
2017-02-15 00:13:02 +01:00 |
|
ariard@student.42.fr
|
0040a07ce9
|
bitwise pour exclure next_token malvenu
|
2017-02-14 19:09:30 +01:00 |
|
ariard@student.42.fr
|
fd951302a3
|
combinaison pipe et simple ok
|
2017-02-13 23:00:05 +01:00 |
|
ariard@student.42.fr
|
582087186f
|
a lot of grammar
|
2017-02-12 21:09:23 +01:00 |
|
ariard@student.42.fr
|
2a70b3f702
|
moar moar moar grammar
|
2017-02-12 19:19:16 +01:00 |
|
ariard@student.42.fr
|
f16b0b923f
|
moaaar grammar
|
2017-02-12 18:49:30 +01:00 |
|
ariard@student.42.fr
|
a07ed6eea7
|
moaaaar grammar
|
2017-02-12 18:47:16 +01:00 |
|
ariard@student.42.fr
|
80a5a8b1e2
|
Merge branch 'pda' of https://github.com/jzck/minishell into pda
grammar neeeded
|
2017-02-12 17:30:47 +01:00 |
|
ariard@student.42.fr
|
775d995772
|
grammar
|
2017-02-12 17:30:36 +01:00 |
|
AntoHesse
|
6601e2111f
|
moar moar grammar
|
2017-02-12 04:09:36 +01:00 |
|
AntoHesse
|
516e1dade5
|
enforcement grammar part 1
|
2017-02-12 02:40:34 +01:00 |
|
ariard@student.42.fr
|
30494f2df2
|
moar grammar
|
2017-02-10 20:08:46 +01:00 |
|
ariard@student.42.fr
|
1358c367e6
|
jack a raison: les enums ca marche..
|
2017-02-10 01:43:20 +01:00 |
|
ariard@student.42.fr
|
87b7d65d71
|
archi ok, test struct de grammaire
|
2017-02-09 20:34:09 +01:00 |
|
ariard@student.42.fr
|
e7a7fc04df
|
proto parser en cours
|
2017-02-09 18:10:28 +01:00 |
|
ariard@student.42.fr
|
ebc57c0da8
|
parser as a pushdown automata, test
|
2017-02-09 16:06:05 +01:00 |
|
ariard@student.42.fr
|
5ec1e4c29f
|
before test pushdown automata
|
2017-02-08 23:28:18 +01:00 |
|
Jack Halford
|
5a033a8789
|
fcntl for saving fds, new option to distinguish interactive shell or not
|
2017-02-08 22:48:37 +01:00 |
|
Jack Halford
|
b613f9fb89
|
conflicts resolved
|
2017-02-07 18:06:30 +01:00 |
|
Jack Halford
|
a01b7b76ab
|
redirection now works with builtins!
|
2017-02-07 17:57:52 +01:00 |
|
wescande
|
6648487f4a
|
mergeing of branch var expansion
|
2017-02-07 17:40:10 +01:00 |
|
wescande
|
7610136d18
|
expansion des variables ok, fait a l'execution et plus dans le lexer (laissé en commentaire dans le lexer)
|
2017-02-07 17:22:39 +01:00 |
|
Jack Halford
|
c56f9dac85
|
lexer_comment back onto master
|
2017-02-07 12:38:04 +01:00 |
|
ariard@student.42.fr
|
c0977b20ff
|
until exec ok
|
2017-02-06 21:02:37 +01:00 |
|
ariard@student.42.fr
|
490f81ee23
|
exec if + elif + else ok to-do:syntax error
|
2017-02-06 19:48:17 +01:00 |
|
ariard@student.42.fr
|
a211bfd1b0
|
parsing if/elsif stable
|
2017-02-06 17:59:48 +01:00 |
|
Jack Halford
|
156e1cb29c
|
file redirections repaired
|
2017-02-06 16:51:34 +01:00 |
|
Jack Halford
|
a919dc53b9
|
added parsing error when words follow a subshell
|
2017-02-06 14:42:21 +01:00 |
|
ariard@student.42.fr
|
9bb45abb3d
|
currently parsing if, to-do:syntax error, clean code& interactive shell
|
2017-02-06 00:05:32 +01:00 |
|
ariard@student.42.fr
|
ffb0542c42
|
parsing loop stable
|
2017-02-05 21:13:55 +01:00 |
|
ariard@student.42.fr
|
63b25532b3
|
parsing loop presque
|
2017-02-05 19:38:46 +01:00 |
|
ariard@student.42.fr
|
65b6658978
|
parse newline
|
2017-02-05 00:41:00 +01:00 |
|
ariard@student.42.fr
|
cd2019c0fd
|
fucking newline to parse
|
2017-02-05 00:15:12 +01:00 |
|
ariard@student.42.fr
|
9bbd6d7403
|
do as a sep + multiple newline
|
2017-02-04 15:52:07 +01:00 |
|
ariard@student.42.fr
|
0a5143bd69
|
multi loop ok, to-do : do as a separator(lexing), in case of multisep after do delete all (parsing), before while inspect after done (parsing)
|
2017-02-03 20:03:54 +01:00 |
|
ariard@student.42.fr
|
fcea6dda9b
|
scripting stable before new lexing and parsing(merged with master)
|
2017-02-03 15:41:14 +01:00 |
|
ariard@student.42.fr
|
e708ce1e16
|
merge resolved
|
2017-02-03 14:44:35 +01:00 |
|
Jack Halford
|
62be4bc470
|
new architecture for redirection inside of fork(), chained redirects dont work properly yet
|
2017-02-03 14:11:34 +01:00 |
|
Jack Halford
|
985745f881
|
starting to fixi redirections
|
2017-02-03 13:21:06 +01:00 |
|
ariard@student.42.fr
|
36dcd432a4
|
before rebase
|
2017-02-02 17:56:40 +01:00 |
|
Jack Halford
|
7265a6c340
|
cleaner main, added ft_lexer to encapsulate all phases of tokenization
|
2017-02-02 15:45:55 +01:00 |
|
Jack Halford
|
073ef322e4
|
fixed backquotes
|
2017-02-02 14:57:30 +01:00 |
|
ariard@student.42.fr
|
f33d2be526
|
lexing if ok
|
2017-02-01 00:00:27 +01:00 |
|
ariard@student.42.fr
|
b0dececf1f
|
loop_del
|
2017-01-31 22:52:36 +01:00 |
|
ariard@student.42.fr
|
73b4cc3060
|
resolution empty tree + nested loop + while error lexing
|
2017-01-31 22:12:49 +01:00 |
|
wescande
|
ad7d814c74
|
extension du globbing implemente SUPER MAKEFILE QUI DECHIRE TA M*RE
|
2017-01-31 19:36:29 +01:00 |
|
ariard@student.42.fr
|
0dc029406f
|
exec while ok nxt: resoudre bug empty tree
|
2017-01-30 23:47:05 +01:00 |
|
ariard@student.42.fr
|
000ae4116a
|
generation subtree test_commands + consequent_commands
|
2017-01-30 19:31:34 +01:00 |
|
ariard@student.42.fr
|
2212c927f8
|
ast with while ok next:execution while
|
2017-01-30 17:23:55 +01:00 |
|
ariard@student.42.fr
|
42bd66af42
|
generation liste chainee d'ast de multi commande ok, to-do : ast de while
|
2017-01-28 23:39:59 +01:00 |
|
ariard@student.42.fr
|
47a2fdd683
|
doing, parsing newline et generation liste chaine d arbre binaire
|
2017-01-26 22:43:47 +01:00 |
|
ariard@student.42.fr
|
bcaa2fb943
|
lexing while_clause, passage en buffer dynamique au readscript todo tomorrow
|
2017-01-26 01:00:03 +01:00 |
|
ariard@student.42.fr
|
a011f94bcb
|
comment same bug that with a space in input execution, tree empty cause bug execution
|
2017-01-24 20:17:46 +01:00 |
|
ariard@student.42.fr
|
ca8fb52d34
|
add lst_find_until + exec script multilines ok
|
2017-01-24 18:08:32 +01:00 |
|
ariard@student.42.fr
|
0431add79c
|
modifs readscript + token newline
|
2017-01-24 01:27:25 +01:00 |
|
ariard@student.42.fr
|
133f4bf052
|
read script init
|
2017-01-22 00:38:27 +01:00 |
|
Jack Halford
|
dfdf245b1a
|
backquote work, still some segfaults, end of day commit
|
2017-01-12 18:09:16 +01:00 |
|
Jack Halford
|
ef400aa225
|
first effort towards subshells and backquotes, lexer done, execution done for subshells
|
2017-01-11 18:06:26 +01:00 |
|
Jack Halford
|
f011ea258d
|
first try at $ expansion, done on the fly in the lexer, not tested thoroughly
|
2017-01-10 15:20:45 +01:00 |
|
Jack Halford
|
0c99e8012c
|
lexer improvements
|
2017-01-10 14:09:18 +01:00 |
|
Jack Halford
|
87b9fab083
|
gonna add processes inside of job
|
2016-12-12 23:56:05 +01:00 |
|
Jack Halford
|
4feaa64e08
|
exitstatus function, so i can set ? variable in one line with not memory handling. No more leaks, sexy debug macro DG(), valgrind suppression, gitignore
|
2016-12-10 00:20:59 +01:00 |
|
Jack Halford
|
d24633c9e6
|
execution functions changes: they now take reference of nodes, they now
delete nodes after operations (suffix).
|
2016-12-10 00:14:33 +01:00 |
|
Jack Halford
|
768d996b7a
|
commit de reference
|
2016-12-03 15:37:50 +01:00 |
|
Jack Halford
|
2d631469e6
|
execution of &&/|| done, added aol_status and aol_search to data (aol=and_or_list)
|
2016-12-01 17:47:41 +01:00 |
|
Jack Halford
|
07b8519239
|
added &&,|| and & operators to lexer/parser
|
2016-11-30 22:09:55 +01:00 |
|
Jack Halford
|
1ac56a21e8
|
quoting FSM repaired
|
2016-11-29 15:39:39 +01:00 |
|
Jack Halford
|
569812ddcb
|
pipeline working, added stack of old qstates to make the FSM adiabatic
|
2016-11-28 19:30:31 +01:00 |
|
Jack Halford
|
b59f05eb77
|
test.c to understant pipe()
|
2016-11-27 23:52:36 +01:00 |
|
Jack Halford
|
aa456796ac
|
parsing virtually finished exept heredoc
|
2016-11-24 23:11:07 +01:00 |
|
Jack Halford
|
2f2e7c03b1
|
nice tree printing, starting to look good
|
2016-11-20 23:32:39 +01:00 |
|
Jack Halford
|
bce0f37b8e
|
major stuff today: wrote a proper lexer based on finite state machines, quoting OK. next is finishing the parser, and history of line editing module
|
2016-11-18 23:16:32 +01:00 |
|