#lexer #lossless #logo #lsp #token #source-pawn #sourcepawn

sourcepawn_lexer

Lossless SourcePawn lexer

7 releases

0.3.0 Jan 2, 2025
0.2.1 Jul 23, 2024
0.2.0 Feb 16, 2024
0.1.3 Feb 11, 2024
0.1.0 Jun 2, 2023

#15 in #logo

Download history 13/week @ 2024-12-09 222/week @ 2024-12-30 53/week @ 2025-01-06 37/week @ 2025-01-13 11/week @ 2025-01-20 1/week @ 2025-01-27 2/week @ 2025-02-03

52 downloads per month

MIT license

41KB
1K SLoC

Sourcepawn Lexer

Lossless Sourcepawn lexer build using Logos

Crates.io Crates.io Github release status Code coverage GitHub

Example

use sourcepawn_lsp::lexer::SourcepawnLexer;

fn main() {
    let lexer = SourcepawnLexer::new("int foo = 0;");
    for token in lexer {
        match token.token_kind {
            TokenKind::Literal(_) | TokenKind::Comment(_) => println("{:#?}", token.text()),
            _ => (),
        }
    }
}

Dependencies

~7.5–10MB
~146K SLoC

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy