42-Ikole-Systems / TMK-SH

An awesome POSIX compliant shell.
MIT License
0 stars 0 forks source link

Add token classification #23

Open Tishj opened 1 year ago

Tishj commented 1 year ago

These happen directly, no context is required to perform these classifications. https://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_10_01

These are context dependent and referred to by the Shell Grammar rules https://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_10_02

Tishj commented 1 year ago

I think the only remaining part for the classifications that require no context is the IoNumber, these are not currently produced by the Lexer.

I have taken some steps to work towards implementing the context-dependent classifications in the redirection draft PR