Skip to content
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

Simple Parser for Text File Lines #52

Open
pmbittner opened this issue Dec 3, 2020 · 0 comments · Fixed by #63
Open

Simple Parser for Text File Lines #52

pmbittner opened this issue Dec 3, 2020 · 0 comments · Fixed by #63

Comments

@pmbittner
Copy link
Collaborator

To analyze source code files we have to be able to parse text files to our simple abstract syntax trees from issue #50.
The idea is to create parser with the following interface

public static AST<LineGrammar, String> parseDirectory(java.nio.Path path) {
    /**
      *Traverse the given directory recursively and read the lines of all non-binary files (e.g., .java, .cpp, .txt, ...).
      * Create a node in the tree for each directory, file, and the lines in that file,
      * such that the directory structure is mirrored in the returned tree.
      */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment