Attean...::Lexer(3pm)
π NAME π
AtteanX::API::Lexer β Role defining common functionality for lexers.
Ok bestie, this is the User Contributed Perl Documentation page for Attean...::Lexer(3pm), and the manual name is AtteanX::API::Lexer. The whole NAME line is literally: Role defining common functionality for lexers. Slay. π
β¨ VERSION β¨
This document describes AtteanX::API::Lexer version 0.035. That's the whole version vibe. π
πΈ DESCRIPTION πΈ
The AtteanX::API::Lexer role provides a common interface and implementation for lexer implementations, allowing line-based buffer filling, and consuming of characters, constant strings, and fixed-length buffers. It's giving shared lexer infrastructure, no cap. π¦
π§ ATTRIBUTES π§
The role gives you these attributes. The original doesn't add descriptions here, so I'm not inventing any β just listing the names exactly:
filelinebufferlinecolumnbufferstart_columnstart_line
π METHODS π
Here's the method roster, bestie. Every one is iconic in its own way:
fill_bufferβ fills the buffer with a new line from the underlying filehandle. Fresh buffer, fresh line. β¨check_for_bomβ removes a BOM character if one appears at the start of the buffer. BOM begone. π«Άget_char_safe( $char )β consumes the single character$charfrom the buffer. If$charis not at the start of the buffer, it throws an error. No sneaky skipping, bestie. πget_char( $char )β consumes and returns a single character from the buffer. One char, coming right up. πpeek_char( $char )β returns a single character from the start of the buffer. A lil peek from the start, iykyk. πread_word( $word )β consumes the string$wordfrom the start of the buffer. If$wordis not at the start of the buffer, it throws an error. Word check: passed or error, no in-between. π₯read_length( $length )β consumes and returns$lengthcharacters from the start of the buffer. Fixed-length buffet, periodt. π
π BUGS π
Please report any bugs or feature requests through the GitHub web interface at https://github.com/kasei/attean/issues. That's the whole bugs section, bestie β go file that issue if something's acting up. π
π SEE ALSO π
Soooβ¦ this section is literally empty in the original. No references, no extra deets, nothing. π«Ά
π AUTHOR π
Gregory Todd Williams β <gwilliams@cpan.org>. Iconic author credit. π
β COPYRIGHT β
Copyright (c) 2014--2022 Gregory Todd Williams. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Free-software queen behavior, periodt. π
π ok that's the page! Source/version: perl v5.40.0; date: 2025-01-26; manual title: Attean...::Lexer(3pm). Bye bestie, go be the main character of your lexer π
β¨
π¦ where this page comes from
- debian trixie: libattean-perl 0.035-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libattean-perl 0.035-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libattean-perl 0.035-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms