RedHawk

An AST based navigation system
Download

RedHawk Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Publisher Name:
  • Pranesh Srinivasan

RedHawk Tags


RedHawk Description

An AST based navigation system RedHawk is a code navigation system built on the idea of a language agnostic parse tree.RedHawk currently supports C & Python. Code navigation systems are few and far. They are either too tied to a language, or are very heuristic in nature --- using regex based parsers. RedHawk attempts to acheive the best of both worlds. It uses parses each of the languages, and converts the resulting AST to a language agnostic AST, or L-AST.The resulting L-AST can be queried by using either Selectors (similar to JQuery), or an xpath like syntax. A Typical use of RedHawk is as shown below:$ redhawk '*/DefineFunction' file1.py file2.cRedHawk is currently under heavy development. The code can be found on github.RedHawk currently requires python 2.6 or 2.7.Project Objectives1. Allow users to effectively find and thereby navigate code in an editor-independent manner.2. Enable users to write powerful queries to get to exactly where they want.3. Allow cross-language analysis in the future, thereby benefitting projects in multiple languages.4. Expose the L-AST in a simple manner via the RedHawk API for other tools. These tools could involve indenting code, suggesting completions, or static analysis.5. Eventually allow editing of the L-AST, and thereby powerful refactoring. Requirements: · Python · pycparser · pygraphviz What's New in This Release: · Vim plugin released. · Patch to FormatPosition to not strip lines when context = 0.


RedHawk Related Software