Ben Kurtovic
ae542e640c
Typo.
10 년 전
Ben Kurtovic
33c942402f
Python parser bugfix, again.
10 년 전
Ben Kurtovic
05811c7c1b
Fix bug in parser for Python classes.
10 년 전
Ben Kurtovic
c475de1c0b
Finish new language spec.
10 년 전
Benjamin Attal
2d643b1069
Stop ruby parser from failing. Add other parser fixes. Should be good
to go now.
10 년 전
Ben Kurtovic
9d3f9444f7
Not necessary: codelet.symbols is {} by default.
10 년 전
Benjamin Attal
16775a6490
Remove negative line numbers for parsers.
10 년 전
Ben Kurtovic
71ba6c31d8
Minor cleanup.
10 년 전
Benjamin Attal
525e049be0
Bug fixes.
10 년 전
Benjamin Attal
e9f0ddfe71
Ensure ruby parser returns all dictionary keys, regardless of whether or not there are elements in them.
10 년 전
Ben Kurtovic
6eeea5bf7e
Fix parsing via servers.
10 년 전
Benjamin Attal
7337638b72
Change form get_lexer to guess_lexer -- guess_lexer is more accurate.
10 년 전
Benjamin Attal
ca4bb8ff42
Change format of symbols to fit databse model.
10 년 전
Benjamin Attal
c9520fd4e3
Add function to start parse servers in parser/__init__.py
10 년 전
Benjamin Attal
65a2688be9
Adjust test for new language dict.
10 년 전
Ben Kurtovic
f02dc4497c
Fixes.
10 년 전
Ben Kurtovic
5d8ac664fe
HAHA WHAT ARE ITERATORS
10 년 전
Benjamin Attal
5e6e3fcbf5
Adjust test for new language dict.
10 년 전
Ben Kurtovic
5a83720617
Strip encoding lines.
10 년 전
Ben Kurtovic
5d9ef2774d
Some fixes, mainly involving language detection.
10 년 전
Ben Kurtovic
30406483b9
Add unit tests, cleanup.
10 년 전
Benjamin Attal
d127ac94ad
1) All unavailable line numbers and column numbers become -1.
2) Add correct dependency in pom.xml
10 년 전
Benjamin Attal
044a448602
Change the format of the symbols to fit with earwig's issue.
10 년 전
Benjamin Attal
4cc0626a71
Catch ClassNotFound error in parser __init__.py
10 년 전
Benjamin Attal
b16bc40d3f
Consolidate parsers into __init__.py. Update python.py parser.
10 년 전
Benjamin Attal
71dec1d269
Modify the python parser. Make data more descriptive by adding data
about function calls.
10 년 전
Benjamin Attal
d8b234f462
Update docstrings and parser dispatching in parser init file.
10 년 전
Benjamin Attal
669c30cac7
Mod:
Parse.java:
Added comments
JavaParser.java:
Updated the genSymbols method and a private class 'NodeVisitor' which
implements ASTVisitor. genSymbols returns an instance of the
Symbols class containing all relevant data about the Java code.
JavaSymbols.java:
Add fields which map class, interface, method, field, and
variable names to positions.
10 년 전
Benjamin Attal
63b09caa6c
Changed directory structure of java parser. Decided on multiple parsers in different languages, refactored bitshift/parser to fit with that paradigm.
10 년 전
Benjamin Attal
a1066dd093
Modify parser/__init__.py so that it communicates with the Java parsing process and reads a result back from a unique file. Add template files for Java parsers.
10 년 전
Benjamin Attal
3bc748242d
Refactor parser/__init__.py for new parsing mechanism
10 년 전
Benjamin Attal
a8f918f7c4
Update class names. Move language ids to languages.py
10 년 전
Benjamin Attal
0a57cf50e6
Add first version of the c parser
Add:
c.py
- CTreeCutter class is very similar to PyTreeCutter. It utilizes
self.cache as opposed to PyTreeCutter which doesn't yet.
- CTreeCutter visit functions simply add start and end lines of
the node to the cache, and visit_Decl pushes the cache onto
accum.
- parse_c performs a task identical to parse_py. However, many
c files need to be pre-processed before they are parsed.
10 년 전
Benjamin Attal
847410b13c
Minor fix-ups in python parser.
Mod:
python.py
- Add self.cache to allow for saving of unassocaited metadata as the
PyTreeCutter moves down the syntax tree.
- Update docstrings.
10 년 전
Benjamin Attal
d485b87f21
Fix docstring in bitshift/parser/python.py
10 년 전
Benjamin Attal
b77db873c1
Refactor parsing in python by adding node visitor class. Performs same
tasks as previous version, but is more concise.
Add:
bitshift/parser/python.py:
Add PyTreeCutter class to perform actions on specific nodes.
10 년 전
Benjamin Attal
4d8c818c05
Corrected documentation in bitshift/codelet.py and
bitshift/parser/__init__.py
10 년 전
Benjamin Attal
5db273a773
Bugfixes for _serialize function in bitshift/parser/python.py
10 년 전
Benjamin Attal
0c5e4572f8
Add placeholder functions for parsing c and java in bitshift/parser. Add parse_py function with helper functions. Parse_py grabs relevant information on variables, functions, and classes from abstract syntax tree of codelet code.
10 년 전
Benjamin Attal
903e4ccc05
Add constants in bitshift/config.py for languages instead of just strings.
10 년 전
Benjamin Attal
efdcb3793a
Add docstrings for functions in parser. Add ivar for syntax tree to codelet documentation.
10 년 전
Benjamin Attal
d88e68e16e
Add dispatch 'parse' function to parser __init__.py. Basic code language identification as well. Included pycparser as a depedency.
10 년 전
Ben Kurtovic
0c68988982
CREATE THE THINGS
10 년 전