All Projects → furkanonder → bor

furkanonder / bor

Licence: MIT license
User-friendly, tiny source code searcher written by pure Python.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to bor

Regexpp
The regular expression parser for ECMAScript.
Stars: ✭ 97 (-7.62%)
Mutual labels:  abstract-syntax-tree
Vermin
Concurrently detect the minimum Python versions needed to run code
Stars: ✭ 218 (+107.62%)
Mutual labels:  abstract-syntax-tree
awesome-ruby-ast
A list of awesome tools and libraries which deals with ASTs in Ruby
Stars: ✭ 24 (-77.14%)
Mutual labels:  abstract-syntax-tree
Rewrite
Semantic code search and transformation
Stars: ✭ 134 (+27.62%)
Mutual labels:  abstract-syntax-tree
React Scanner
Extract React components and props usage from code.
Stars: ✭ 176 (+67.62%)
Mutual labels:  abstract-syntax-tree
codesnippetsearch
Neural bag of words code search implementation using PyTorch and data from the CodeSearchNet project.
Stars: ✭ 67 (-36.19%)
Mutual labels:  code-search
Spoon
Spoon is a metaprogramming library to analyze and transform Java source code (up to Java 15). 🥄 is made with ❤️, 🍻 and ✨. It parses source files to build a well-designed AST with powerful analysis and transformation API.
Stars: ✭ 1,078 (+926.67%)
Mutual labels:  abstract-syntax-tree
core.horse64.org
THIS IS A MIRROR, CHECK https://codeberg.org/Horse64/core.horse64.org
Stars: ✭ 3 (-97.14%)
Mutual labels:  abstract-syntax-tree
Bellybutton
Custom Python linting through AST expressions
Stars: ✭ 196 (+86.67%)
Mutual labels:  abstract-syntax-tree
Sourcegraph
Universal code search (self-hosted)
Stars: ✭ 5,492 (+5130.48%)
Mutual labels:  code-search
Js Sql Parser
SQL(select) parser written with jison. parse SQL into abstract syntax tree(AST) and stringify back to SQL. sql grammar follows https://dev.mysql.com/doc/refman/5.7/en/select.html
Stars: ✭ 141 (+34.29%)
Mutual labels:  abstract-syntax-tree
Pyt
A Static Analysis Tool for Detecting Security Vulnerabilities in Python Web Applications
Stars: ✭ 2,061 (+1862.86%)
Mutual labels:  abstract-syntax-tree
gofind
gofind searches through Go source code by types.
Stars: ✭ 47 (-55.24%)
Mutual labels:  code-search
Cgen
C/C++ source generation from an AST
Stars: ✭ 107 (+1.9%)
Mutual labels:  abstract-syntax-tree
open-fortran-parser-xml
XML output generator for Open Fortran Parser, and Python wrapper for it.
Stars: ✭ 21 (-80%)
Mutual labels:  abstract-syntax-tree
Deps Report
Generate reports about dependencies and dependents of your JavaScript/TypeScript files through an AST. It supports import and require statements.
Stars: ✭ 76 (-27.62%)
Mutual labels:  abstract-syntax-tree
Asts Workshop
Improved productivity 💯 with the practical 🤓 use of the power 💪 of Abstract Syntax Trees 🌳 to lint ⚠️ and transform 🔀 your code
Stars: ✭ 253 (+140.95%)
Mutual labels:  abstract-syntax-tree
so stupid search
It's my honor to drive you fucking fire faster, to have more time with your Family and Sunshine.This tool is for those who often want to search for a string Deeply into a directory in Recursive mode, but not with the great tools: grep, ack, ripgrep .........every thing should be Small, Thin, Fast, Lazy....without Think and Remember too much ...一…
Stars: ✭ 135 (+28.57%)
Mutual labels:  code-search
codeparser
Parse Wolfram Language source code as abstract syntax trees (ASTs) or concrete syntax trees (CSTs)
Stars: ✭ 84 (-20%)
Mutual labels:  abstract-syntax-tree
facoy
FaCoY Code-to-Code Search Engine
Stars: ✭ 26 (-75.24%)
Mutual labels:  code-search

User-friendly, tiny source code searcher written in pure Python.

Actions Status GitHub issues GitHub stars GitHub license Downloads

Installation

bor can be installed by running pip install bor. It requires Python 3.8.0+ to run.

Usage

bor currently supports class and def keywords. Other Python keywords will be added in the future releases.

bor {keyword} {pattern}

By default, bor runs in your current directory. You can run bor with the specific source file or directory:

bor {keyword} {pattern} {source_file_or_directory}

Configuration

By default, if bor encounters an error(syntax, indentation error etc.) while analyzing files, it will stop working. If you want to the ignore errors, you can use --ignore-error or -i argument. For example;

bor class Cat --ignore-error

Example Usages

Cat is equivalent in the regular expression as ^Cat$

bor class Cat

Output:

Cat at examples/test.py:18

.Cat is equivalent in the regular expression as Cat$

bor class .Cat

Output:

Cat at examples/test.py:18
BlueCat at examples/test.py:26

get. is equivalent in the regular expression as ^get

bor def get. examples/test.py

Output:

get_value at examples/test.py:5
get_blue_value at examples/test.py:11
get_purple_value at examples/test.py:14
get_meow at examples/test.py:22

.cat. is equivalent in the regular expression as cat+

bor def .cat.

Output:

catch_me_if_you_can at examples/test.py:8
am_i_blue_cat at examples/test.py:30
where_is_the_cat at examples/test.py:38
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].