Skip to content

DTeltsov/Python-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Python-parser

Parser считывает py-файл построчно и с помощью Regex определяет тот или иной фрагмент кода к категории.

Например:

Вот код на Python:

print('X_1: {0}   Y_1: {1}   Z_1 {2}'.format(x,y,z))

А вот что нам Parser выведет в консоль

print - Keyword
( - Punctuation
'X_1: {0}   Y_1: {1}   Z_1 {2}' - String
. - Punctuation
format - Keyword
( - Punctuation
x - Identifier
, - Punctuation
y - Identifier
, - Punctuation
z - Identifier
) - Punctuation
) - Punctuation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published