8000 Parse scripts into an AST-like structure before interpreting their contents · Issue #86 · fildesh/fildesh · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Parse scripts into an AST-like structure before interpreting their contents #86

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task
Tracked by #36
, #9 8000 #52
...
grencez opened this issue Sep 13, 2022 · 1 comment
Open
1 task
Tracked by #36 ...
Labels

Comments

@grencez
Copy link
Member
grencez commented Sep 13, 2022
  • Test that nested fildesh invocations do not emit TRACE messages about bad file descriptors. (happens now because we don't pre-parse the script, and therefore don't know when we actually will use stdin/stdout)
@grencez grencez mentioned this issue Sep 13, 2022
7 tasks
@grencez
Copy link
Member Author
grencez commented Sep 18, 2022

toplevel is either:

  • Include
    • name. parser doesn't read the file
  • Command
    • filename & line number
    • argv
    • stdin & stdout names ("-" is implicit pipe)
  • Assignment
    • name
    • string value
  • Heredoc
    • name & string literal
  • Barrier
  • Tmpfile declaration
    • name

String is an array of pieces, which are:

  • Literal piece
  • Variable reference
  • getenv

Arg is either:

  • String
  • Different kinds of variable references
    • type & var name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant
0