Skip to content

Determine whether Bash language can be parsed and put into syntax tree. #4

@a-t-0

Description

@a-t-0

To be able to parse the Bash scripts into a syntax tree may allow for easier anaysis/parsing of the Bash code at later stages of the project.

  • Determine whether a language tree can be built for bash. If not, determine up to what extent it is possible, and whether this checkstyle could be opinionated such that it only allows for scripts that are suitable to be put into a language tree.
  • Determine whether it is valuable for checkstyle for bash.
  • If considered valuable, determine if there already is such a parser available. If yes, determine if it is better to use that existing code, or to rebuild.
  • If considered valuable, implement the parser such that Bash syntax trees can be generated for the bash scripts.
  • Determine up to what extend Python functions should be rewritten to work on the parser/tree instead of on the bash scripts. And rewrite where necessary.

https://www.oilshell.org/blog/2019/02/07.html
https://hackage.haskell.org/package/language-bash

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions