입력값 : [echo helloworld! > test.txt] 토크나이저 결과 [ "echo", "helloworld!", ">", "test.txt"] 렉서 결과 [ {type: 'command', value:"echo" }, {type: 'string', value: "helloworld!"}, {type: 'redirect', value: ">"}, {type: 'file', value: "test.txt"} ]
echo hello > a > b > c result : a 빈파일, b 빈파일, c hello