Y a exam desoler bb pas le temps de te mettre un vrai commit jtm
This commit is contained in:
parent
5d425048f2
commit
9a87ad7097
13 changed files with 457 additions and 8 deletions
31
rust/parser/src/adapt_in_c/includes/enum.h
Normal file
31
rust/parser/src/adapt_in_c/includes/enum.h
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* enum.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/03/28 12:44:05 by rparodi #+# #+# */
|
||||
/* Updated: 2024/03/28 13:09:06 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef ENUM_H
|
||||
#define ENUM_H
|
||||
|
||||
#include "./rust_type.h"
|
||||
|
||||
enum e_separator_op
|
||||
{
|
||||
Semi,
|
||||
Fork,
|
||||
};
|
||||
|
||||
enum e_pipeline_kind
|
||||
{
|
||||
Or,
|
||||
And,
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
33
rust/parser/src/adapt_in_c/includes/rust_type.h
Normal file
33
rust/parser/src/adapt_in_c/includes/rust_type.h
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* rust_type.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/03/28 12:50:51 by rparodi #+# #+# */
|
||||
/* Updated: 2024/03/28 12:52:53 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef RUST_TYPE_H
|
||||
#define RUST_TYPE_H
|
||||
|
||||
# define bool int
|
||||
# define true 1
|
||||
# define false 0
|
||||
# define u8 unsigned char
|
||||
# define u16 unsigned short
|
||||
# define u32 unsigned int
|
||||
# define u64 unsigned long long
|
||||
# define i8 char
|
||||
# define i16 short
|
||||
# define i32 int
|
||||
# define i64 long long
|
||||
# define usize size_t
|
||||
# define isize ssize_t
|
||||
# define f32 float
|
||||
# define f64 double
|
||||
|
||||
#endif
|
||||
|
||||
29
rust/parser/src/adapt_in_c/includes/shcat.h
Normal file
29
rust/parser/src/adapt_in_c/includes/shcat.h
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* shcat.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/03/28 12:42:55 by rparodi #+# #+# */
|
||||
/* Updated: 2024/03/28 12:53:50 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef SHCAT_H
|
||||
#define SHCAT_H
|
||||
|
||||
# include <unistd.h>
|
||||
# include <fcntl.h>
|
||||
# include <stdlib.h>
|
||||
# include <stdio.h>
|
||||
# include <string.h>
|
||||
# include <sys/types.h>
|
||||
# include <sys/wait.h>
|
||||
# include <stdlib.h>
|
||||
# include <stdarg.h>
|
||||
# include <stddef.h>
|
||||
|
||||
# include "./enum.h"
|
||||
# include "./rust_type.h"
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue