AntoHesse
|
9c0984658e
|
exec flow control
|
2017-02-26 01:13:47 +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
|
0461285d95
|
subshell et case ok
|
2017-02-24 19:30:20 +01:00 |
|
AntoHesse
|
79bceb05a9
|
trop fatigue pour debug les case nesting, fuck it, todo tomorrow
|
2017-02-23 01:55:09 +01:00 |
|
ariard@student.42.fr
|
49b79603b3
|
insert newline add
|
2017-02-21 22:45:59 +01:00 |
|
Jack Halford
|
8084ffb6a1
|
pipes done
|
2017-02-21 22:42:13 +01:00 |
|
Jack Halford
|
ec79b05131
|
new instruction handler looks good
|
2017-02-21 20:21:52 +01:00 |
|
ariard@student.42.fr
|
d05cec4962
|
include + parser state
|
2017-02-21 16:46:13 +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 |
|
wescande
|
4ea6fb5801
|
Merge remote-tracking branch 'origin/glob_bquote'
|
2017-02-20 19:18:23 +01:00 |
|
wescande
|
f9019aea88
|
suppression ancien backquote + deplacement command output + modif main sur l'appel a expand_bquote
|
2017-02-20 19:15:19 +01:00 |
|
wescande
|
169aa62b7e
|
rectif nombreuses issues + ajout de l'expansion des backquote
|
2017-02-20 15:31:13 +01:00 |
|
ariard@student.42.fr
|
f6aefd7739
|
grammar if then elif part one
|
2017-02-19 19:32:45 +01:00 |
|
gwojda
|
480c9810c9
|
ajout builtin hash + ajout rehash si access ne fonctionne pas sur path donné dans la table
|
2017-02-18 16:52:55 +01:00 |
|
gwojda
|
ea073dceaf
|
correction segv edition de ligne + ajout table de hash
|
2017-02-18 14:42:43 +01:00 |
|
ariard@student.42.fr
|
96e439b652
|
parsing while simple ok
|
2017-02-17 23:43:44 +01:00 |
|
wescande
|
97b1dc268f
|
init
|
2017-02-17 18:19:26 +01:00 |
|
ariard@student.42.fr
|
b0a3e63ffc
|
modif redirect list
|
2017-02-17 17:15:58 +01:00 |
|
Jack Halford
|
b8bf58fbab
|
doing some bquote expansion fix
|
2017-02-17 15:49:03 +01:00 |
|
AntoHesse
|
7f83e231aa
|
&& ||
|
2017-02-17 02:38:56 +01:00 |
|
M600
|
61b193013e
|
Refreshed documentation on autocompletion module
|
2017-02-16 22:19:56 +01:00 |
|
AntoHesse
|
7477cb4c0d
|
debug exec ou parsing
|
2017-02-16 17:35:44 +01:00 |
|
M600
|
fbecb59a14
|
Reworked colors and fix a few bugs. Still missing advanced research
|
2017-02-16 15:21:23 +01:00 |
|
gwojda
|
3dfc6abb61
|
correction de quelques bugs sur le prompt - correction de segv sur env - correction de leaks
|
2017-02-16 12:46:42 +01:00 |
|
ariard@student.42.fr
|
185ed2ebd3
|
gen ast en cours
|
2017-02-15 20:58:41 +01:00 |
|
gwojda
|
b67c7fd7d3
|
ajout d'env avec opt -i -u / export / unset
|
2017-02-15 15:46:43 +01:00 |
|
Jack Halford
|
73f12e7e96
|
merged heredoc support; moved history/ into src/ because of makefile
problems
|
2017-02-15 07:06:57 +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 |
|
Jack Halford
|
c764027070
|
heredoc starting to work; goto do multiple heredoc and execution part
|
2017-02-14 20:32:34 +01:00 |
|
gwojda
|
71f13249b8
|
recollage de l'historique + control R + point d'exclamation. quelques fixes pour le prompt
|
2017-02-14 15:45:17 +01:00 |
|
Jack Halford
|
665c593f5d
|
merged new lexer/line-edit architecture
|
2017-02-14 01:16:54 +01:00 |
|
Jack Halford
|
4840051dbd
|
backquote expansion checks for splitting
|
2017-02-13 17:46:56 +01:00 |
|
Jack Halford
|
2e0b6102ce
|
bquotes expand correctly but segfault afterwards...
|
2017-02-13 15:31:21 +01:00 |
|
Jack Halford
|
742a99440e
|
backslash should work, also keep NL when they are quoted
|
2017-02-12 18:11:59 +01:00 |
|
Jack Halford
|
6ec9f9295e
|
initial implementation looks ok, parenthesis needs fix
|
2017-02-10 05:19:26 +01:00 |
|
Jack Halford
|
e8cd4f45b0
|
started to work on lexer_stack
|
2017-02-10 00:38:45 +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 |
|
Jack Halford
|
c5263b51d0
|
Merge branch 'random_fixes'
|
2017-02-08 22:49:01 +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 |
|
wescande
|
6c8ea86a24
|
ajout memrealloc et modif token_append sur les char esc et esc2
|
2017-02-08 18:46:16 +01:00 |
|
Jack Halford
|
a99ef894e7
|
maakefile switch echo to printf
|
2017-02-07 22:42:02 +01:00 |
|
Jack Halford
|
bb666ba0c6
|
escaped codes in makefile are now \e
|
2017-02-07 20:16:53 +01:00 |
|
Jack Halford
|
28acb3b814
|
removed lexer_var and prototype
|
2017-02-07 18:14:57 +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
|
060800769b
|
lexer_comment done
|
2017-02-07 12:57:46 +01:00 |
|
Jack Halford
|
d7f5116eb0
|
looks promising
|
2017-02-07 02:07:47 +01:00 |
|
Jack Halford
|
bb52d35f4d
|
starting to fix redirects
|
2017-02-06 23:49:58 +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 |
|
wescande
|
43a4fffc58
|
erreur de parenthese + remise a la norme
|
2017-02-06 15:51:49 +01:00 |
|
wescande
|
fe57e9e520
|
rectif du segv sur {} + modification de la gestion des {} (ordre + qd chaine unique) + ajout de fonction pours les chars esc (set_char_esc | set_char_no_esc | set_char_esc_mode
|
2017-02-06 15:38:10 +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
|
cd2019c0fd
|
fucking newline to parse
|
2017-02-05 00:15:12 +01:00 |
|
gwojda
|
288acbb378
|
mise a la norme edition de ligne - heredoc mal géré
|
2017-02-04 16:29:28 +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 |
|
Jack Halford
|
593258dff2
|
merged lexer-hotfix
|
2017-02-03 16:23:54 +01:00 |
|
Jack Halford
|
2f647b820f
|
no more skipping delims before lexing, removed superfluous headers from lib, readded do_job_notifications before prompt
|
2017-02-03 16:15:55 +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 |
|
gwojda
|
045b3c0226
|
completion en cas d'unique possibilité : OK ! :D
|
2017-02-03 15:41:06 +01:00 |
|
m600x
|
c9dc8a5bd2
|
Merged with completion
|
2017-02-03 15:21:13 +01:00 |
|
m600x
|
cb9fe01c3e
|
Merging
|
2017-02-03 15:14:02 +01:00 |
|
m600x
|
fff7a872e6
|
Pre-Merge
|
2017-02-03 15:08:32 +01:00 |
|
gwojda
|
c0918e8e6b
|
quoting + backslash + backquotes + parentheses + accolades revu : normalement ca marche. On va tenter d'ajouter la completion
|
2017-02-03 15:04:54 +01:00 |
|
Jack Halford
|
da66e7bd79
|
Merge branch 'redirection-fix'
|
2017-02-03 14:42:41 +01:00 |
|
m600x
|
9f15e9b4c7
|
Content of data->line.input and data->line.pos updated
|
2017-02-03 14:15:46 +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 |
|
m600x
|
f43f11cd14
|
Rebase init
|
2017-02-03 12:36:25 +01:00 |
|
gwojda
|
7fb9aa2da5
|
changement du squelette (passage a un tableau de pointeur sur fonction) - pas encore tout resté
|
2017-02-02 19:07:32 +01:00 |
|
Jack Halford
|
7265a6c340
|
cleaner main, added ft_lexer to encapsulate all phases of tokenization
|
2017-02-02 15:45:55 +01:00 |
|
gwojda
|
f03692e762
|
correction de bugs sur les termcaps - normalement tu peux spammer wesande ! :p
|
2017-02-02 11:47:58 +01:00 |
|
Gautier WOJDA
|
b576eddd03
|
correction de leaks
|
2017-02-02 11:13:02 +01:00 |
|
Jack Halford
|
62cdc4ca84
|
back to looking like the GNU tutorial
|
2017-02-01 17:30:45 +01:00 |
|
wescande
|
43f1295324
|
finition sur le globbing (expansion des accolades, gestion des characteres echappe) => normalement aucun bug + mise a la norme
|
2017-01-31 23:25:41 +01:00 |
|
wescande
|
3c8c143143
|
merge de extend_glob. Ajout de la barre de progression dans le makefile
|
2017-01-31 19:52:04 +01:00 |
|
wescande
|
ad7d814c74
|
extension du globbing implemente SUPER MAKEFILE QUI DECHIRE TA M*RE
|
2017-01-31 19:36:29 +01:00 |
|
wescande
|
3c46e10736
|
integration du retour de glob dans les tokens
|
2017-01-30 17:19:09 +01:00 |
|
wescande
|
95e1f03401
|
upgrade Makefile with all .c
|
2017-01-30 16:43:41 +01:00 |
|
wescande
|
4f5c65b9a2
|
finalisation du lexer avec les char echappé -> 1 unsigned char pour 8 char du token (1 bit pour 1 char). Module glob en place en tenant compte des echappé. fonction is_char_esc en place pour une utilisation plus globale
|
2017-01-28 01:19:03 +01:00 |
|
Jack Halford
|
26625dd1b1
|
commit pour cleanup la merde de wescande sur git........
|
2017-01-26 19:39:39 +01:00 |
|
wescande
|
a0feff2e2a
|
clean after rebase
|
2017-01-26 19:37:19 +01:00 |
|
wescande
|
d857f74a86
|
some minor tricks
|
2017-01-26 19:24:00 +01:00 |
|
wescande
|
c556b0eea5
|
ajout de la recherche recursive sur le globbing et du chemin absolu. (/*/*/*) toujours pas de gestion du double star (**)
|
2017-01-26 19:24:00 +01:00 |
|
wescande
|
6102eda2df
|
ajout de l'expand des brace, reste a travailler sur le tri du tableau de retour pour l'avoir par ordre ascii
|
2017-01-26 19:24:00 +01:00 |
|
wescande
|
977238f69e
|
premier commit. working. . .
|
2017-01-26 19:24:00 +01:00 |
|
Jack Halford
|
e4e32db599
|
merge done
|
2017-01-10 13:23:21 +01:00 |
|
Jack Halford
|
21276905b7
|
petit commit avant de merge job_control: unification de data_singleton (Samuel n'utilisais pas le meme) et quelques petites retouches. beau boulet sur le readline @sbenning
|
2017-01-10 11:58:03 +01:00 |
|
Samuel BENNING
|
ed3d6f6268
|
sbenning: Undo Makefile change
|
2016-12-14 13:18:49 +01:00 |
|
Jack Halford
|
4cfeb62747
|
job_control first commit:
|
2016-12-10 17:47:36 +01:00 |
|
m4s
|
e578f0ef08
|
sbenning: move OLD folder and fix some intgration bugs (qstate_update/Makefile)
|
2016-12-10 12:39:56 +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
|
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
|
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 |
|
Jack Halford
|
74f9916047
|
input is now char* not dlist, started to write FSM for quoting git add --all
|
2016-11-18 00:00:32 +01:00 |
|
Jack Halford
|
5f329666d3
|
more parsing and some exec
|
2016-11-14 18:50:18 +01:00 |
|
Jack Halford
|
92f2557e7e
|
libft btree
|
2016-11-13 23:59:34 +01:00 |
|
Jack Halford
|
43529fc845
|
tokenization finished. interactive shell improvements for signal handlind (ISIG option turned off). next step is parsing, thinking of AST structure
|
2016-11-12 23:51:34 +01:00 |
|
Jack Halford
|
76535c73c1
|
work of 10/11/16, started tokenization
|
2016-11-10 17:05:15 +01:00 |
|
Jack Halford
|
6359eac19f
|
interactive shell with termcaps
|
2016-10-28 21:24:29 +02:00 |
|
Jack Halford
|
cc3f6e37d3
|
first commit
|
2016-09-27 05:14:51 +02:00 |
|