SR20-XV500 / minishell

2 stars 0 forks source link

Architecture logicielle #3

Open pupitoe opened 5 months ago

pupitoe commented 5 months ago

Use an AST: https://en.wikipedia.org/wiki/Abstract_syntax_tree?

Architecture: Lexer -> Parser -> Execution

bcheronn commented 5 months ago

Source: https://mywiki.wooledge.org/BashParser

  1. Read data to execute
  2. Process quotes
  3. Split the read data into commands
  4. Parse special operators
  5. Perform Expansions
  6. Split the command into a command name and arguments
  7. Execute the command