Skip to content

Latest commit

 

History

54 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Source Code Tokenizer by Using PyAntlr

Tokenize Multi Language Code

Usage

  1. Get antlr4-python3-runtime and this repository
pip3 install antlr4-python3-runtime
git clone https://github.com/Ikuyadeu/CodeTokenizer.git
  1. Make python code that call tokenizer
from tokenizer import TokeNizer

TN = TokeNizer("Python")

code = "if a.isEmpty():"
print(TN.getPureTokens(code))

Supported Languages

  • Python(Python)
  • Java(Java)
  • JavaScript/TypeScript(JavaScript)
  • C/C++(CPP)
  • Ruby(Ruby)
  • Go(Go)
  • R(R)
  • PHP(PHP)
  • Dart(Dart)

Thanks

This code is made by using antlr and Anoyomouse/Antlr4-Grammar-JavaScript-Py

About

Tokenize Multi Language Code by Python

Resources

Stars

10 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages