bor
0.2.0
bor는 pip install bor
실행하여 설치할 수 있습니다. 실행하려면 Python 3.8.0+가 필요합니다.
bor는 현재 class
및 def
키워드를 지원합니다. 다른 Python 키워드는 향후 릴리스에 추가될 예정입니다.
bor {keyword} {pattern}
기본적으로 bor는 현재 디렉터리에서 실행됩니다. 특정 소스 파일이나 디렉터리를 사용하여 bor를 실행할 수 있습니다.
bor {keyword} {pattern} {source_file_or_directory}
기본적으로 파일을 분석하는 동안 오류(구문, 들여쓰기 오류 등) 가 발생하면 작동이 중지됩니다. 오류를 무시하려면 --ignore-error
또는 -i
인수를 사용할 수 있습니다. 예를 들어;
bor class Cat --ignore-error
Cat
정규식에서 ^Cat$
과 동일합니다.
bor class Cat
산출:
Cat at examples/test.py:18
.Cat
정규식에서 Cat$
와 동일합니다.
bor class .Cat
산출:
Cat at examples/test.py:18
BlueCat at examples/test.py:26
get.
정규식에서 ^get
과 동일합니다.
bor def get. examples/test.py
산출:
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.
정규식에서는 cat+
와 동일합니다.
bor def .cat.
산출:
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