3 repository-uri
Incremental processing of programming language tokens to minimize memory usage during lexical analysis.
Distinct from Streaming Tokenization: Candidates focus on AI audio/event streaming or data serialization, whereas this is specifically for programming language source code tokens.
Explore 3 awesome GitHub repositories matching programming languages & runtimes · Source Code Token Streaming. Refine with filters or upvote what's useful.
PHP-CS-Fixer is a static analysis tool and code style linter designed to validate PHP code against predefined standards. It functions as a coding standard fixer that automatically detects and corrects style violations to ensure consistent formatting across a codebase. The project serves as a syntax modernizer, providing automated tools to update legacy PHP syntax to align with newer language versions. It also allows for the creation of custom style rules when built-in standards do not meet specific requirements. The tool covers broad capability areas including automated linting workflows and
Converts PHP source code into a stream of tokens to identify formatting patterns without requiring a full abstract syntax tree.
php-token-stream is a lexical analysis tool and tokenizer wrapper for PHP. It functions as a source code streamer that reads tokens one by one, preventing the need to load entire source files into memory. The project provides memory-efficient parsing by wrapping the native PHP tokenizer extension. This allows for the sequential processing of source code tokens to analyze structural components and syntax. The tool is designed for static code analysis and the development of compiler tooling. It supports linear token processing and sequential traversal to examine language constructs and project
Implements an iterator-based approach to stream PHP tokens without loading entire source files into memory.
jscpd is a code duplication detector that scans source code across 223 languages to find identical or near-identical copy-pasted blocks using a rolling hash algorithm. It is built with a Rust core for high performance, exposed through a Node.js API and CLI, and can be run as a standalone binary with no runtime dependencies. The tool detects duplicates in embedded languages within Vue, Svelte, Astro, and Markdown files by tokenizing each language block separately, and it supports extensionless scripts via shebang detection. The project distinguishes itself through its integration capabilities
Tokenizes code with format-specific parsers for JS/TS and generic tokenization for 223 languages.