Giter Club home page Giter Club logo

erlcscope's Introduction

Introduction

erlcscope builds a cscope compatible database for erlang files. The database can be used with any program which supports cscope along with the standard cscope -d command.

Installation

Requires Erlang and escript installed.

git clone https://github.com/syed/erlcscope.git
cd erlcscope

By default erlcscope will install the binary in /usr/local/bin. If you want to change the default location edit the DEST_BIN variable in the Makefile.

erlcscope uses rebar present in its directory for compilation. If you want to use a different version of rebar or add some extra paramaters, edit the REBAR variable in the Makefile

After making the necessary changes, compile and install by

make clean 
make 
make install

Usage

cd /path/to/code
erlcscope .

by default erlcscope will look for a file named cscope.files which contains a list of all the source files that need to be processed. If no such file is present, it recursively scans the directory for erlang files and builds the database. It also stores the files found in cscope.files.

Right now erlcscope supports lookup of atoms,variables and functions. The main advantage of cscope over ctags is that it can also lookup where a function is called from instead of just the function definition.

If you are using vim and want to setup cscope, [this](http://cscope.sourceforge.net/cscope_vim_tutorial.html tutorial) tutorial details the process very nicely.

Screenshots

With cscope -d

alt text

With vim

alt text

erlcscope's People

Contributors

kuenishi avatar syed avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.