Skip to content

AlaRduTP/NP-Project-1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project 1 - npshell

Input - Line structure

Each single-line input can be derived from line:

line     ::=  group "\n"
group    ::=  cmd ( sp ord_pipe )* [ sp num_pipe [ group ] | sp fredir ]

ord_pipe ::=  "|" sp cmd
num_pipe ::=  ( "|" | "!" ) num
fredir   ::=  ">" sp file

cmd      ::=  file ( sp arg )*
arg      ::=  word
file     ::=  word

sp       ::=  " "+
num      ::=  ( "0"..."9" )+
word     ::=  ( num | "a"..."z" | "A"..."Z" | "." | "-" | ":" | "\\ " )+

About

NYCU 2022 FALL Network Programming - Project 1

Topics

Resources

Stars

Watchers

Forks