Coder Social home page Coder Social logo

42minishell's People

Contributors

0x0m4r avatar i99dev avatar

Stargazers

 avatar

Watchers

 avatar

42minishell's Issues

hash table

hash table I use dbj2 algorithm for hash env value

  • hash -> to get the best index to save value on a hash table. Djb2.
  • init and create a table for saving our env value.
  • insert value.
  • find value.
  • delete value.
  • print table.
  • check leak and clear

Convert command_table into structure with

Every command will be in a structure that contains all of its info together. This will organize minishell structure and allow tokens to be grouped with all of its tokens, filenames, execve tables, etc.

Screen Shot 2022-05-23 at 7 56 07 PM

Parsing input from readline

creating parser that store commands in command_table and try to execute.
Later must add support for double/single qoute " ' , pipes | , redirect, env var $, etc.

get path for command every table

Now our shell works on any system. I update execute functions to update the cmd path every execute

Ok, everything is fine, but if written
ls -la | grep Makefile.

msh->command_table[0] => its OK
msh->command_table[1] => no return

I think the issue is output from msh->command_table[0] . It's not showing for msh->command_table[1] for that's still waiting

Project structure design

->include
for headers file
-> lib
libft , gext_next_line,..
-> src
-->tools
-->utils
-->....
mina.c
MakeFile

Tokenizer implementation

Tokenization is breaking the raw text into small chunks. Tokenization breaks the raw text into words, sentences called tokens. These tokens help in understanding the context or developing the model for the NLP. The tokenization helps in interpreting the meaning of the text by analyzing the sequence of the words

  • check and insert space
  • split token
  • check quotes.
  • expand variables.
  • define type
  • add token

Makefile relink

Issue

when updating any external library it's not updated if use make re

expect:
when use make re all library update with last change

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.