earwig / bitshift

A semantic search engine for source code
https://bitshift.benkurtovic.com/
MIT License
30 stars 5 forks source link

Update data structure for storing symbols in codelets. #17

Closed earwig closed 10 years ago

earwig commented 10 years ago

New format for symbol table:

location = (row, col, end_row, end_col)
declarations = uses = [location, ...]
symbol = (name_string, declarations, uses)
codelet.symbols = {"functions": [symbol, ...],
                   "classes": [symbol, ...],
                   "vars": [symbol, ...]}