flexc++input(7)
π NAME π
flexc++input β organization of flexc++βs input s. π
okay bestie, this is the flexc++input(7) page, and itβs all about how flexc++βs input files are organized. itβs giving βlet me feed my scanner correctlyβ energy. β¨
πΈ DESCRIPTION πΈ
Flexc++(1) was designed after flex(1) and flex++(1). Like these two programs, flexc++ generates code that performs pattern-matching on text, possibly executing actions when certain regular expressions are recognized. π₯
Refer to flexc++(1) for a general overview. This manual page describes how flexc++βs input s should be organized. It contains the following sections:
1. SPECIFICATION FILE(S)β the format and contents of flexc++ input files, specifying the Scannerβs characteristics.2. FILE SWITCHINGβ how to switch to another input specification file.3. DIRECTIVESβ directives that can be used in input specification files.4. MINI SCANNERSβ how to declare mini-scanners.5. DEFINITIONSβ how to define symbolic names for regular expressions.6. %% SEPARATORβ the separator between the input specification sections.7. REGULAR EXPRESSIONSβ regular expressions supported by flexc++.8. SPECIFICATION EXAMPLEβ an example of a specification file.
π UNDERSCORES π
Starting with version 2.07.00, flexc++ reserved identifiers no longer end in two underscore characters, but in one. This modification was necessary because according to the C++ standard, identifiers having two or more consecutive underscore characters are reserved by the language. In practice this could require some minor modifications of existing source files using flexc++βs facilities, most likely limited to changing StartCondition__ into StartCondition_ and changing PostEnum__ into PostEnum_. π
The complete list of affected names is:
- Enums:
ActionType_,Leave_,StartConditon_,PostEnum_; - Member functions:
actionType_,continue_,echoCh_,echoFirst_,executeAction_,getRange_,get_,istreamName_,lex_,lop1_,lop2_,lop3_,lop4_,lopf_,matched_,noReturn_,print_,pushFront_,reset_,return_; - Protected data members:
d_in_ d_token_ s_finIdx_, s_interactive_, s_maxSizeofStreamStack_, s_nRules_, s_rangeOfEOF_, s_ranges_, s_rf_.
β¨ 1. SPECIFICATION FILE(S) β¨
Flexc++ expects an input file containing directives and the regular expressions that should be recognized by objects of the scanner class generated by flexc++. In this man page the elements and organization of flexc++βs input file is described. π¦
Flexc++βs input file consists of two sections, separated from each other by a line merely containing two consecutive percent characters:
%%
The section before this separator contains directives; the section following this separator contains regular expressions and possibly actions to perform when these regular expressions are matched by the object of the scanner class generated by flexc++. If a second line is encountered immediately beginning with two consecutive percent characters then this ends flexc++βs input file processing. See also section 6 (%% SEPARATOR) below. π
White space is usually ignored, as is comment, which may be of the traditional C form (i.e., /*, followed by (possibly multi-line) comment text, followed by */, and it may be C++ end-of-line comment: two consecutive slashes (//) start the comment, which continues up to the next newline character. π¬
π 2. FILE SWITCHING π
Flexc++βs input file may be split into multiple files. This allows for the definition of logically separate elements of the specifications in different files. Include directives must be specified on separate lines and may not contain any other information than the (path)name of the file to switch to. File names may be surrounded by double quotes, but these double quotes are optional and are ignored (removed) when encountered. All remaining characters define the name of the subsequently processed file by flexc++. White space characters following //include and preceding the end of the line are ignored. To switch files the following stanza is used:
//include file-location
The //include directive must start in the lineβs first column. File locations can be absolute or relative to the location of the file containing the //include directive. Once flexc++ has switched to another file, that fileβs directory becomes flexc++βs working directory. π§
Once the end of file of a file has been reached, processing continues at the line beyond the //include directive of the previously scanned file, and flexc++βs working directory is reset to the working directory of the file to which flexc++ returns. The end-of-file of the file that was initially specified when flexc++ started indicates the end of flexc++βs rules specification. π
π₯ 3. DIRECTIVES π₯
The first section of flexc++βs input file consists of directives. In addition it may associate regular expressions with symbolic names, allowing you to use these identifiers in the rules section. Each directive is defined on a line of its own. When available, directives are overridden by flexc++ command line options. π
Some directives require arguments, which are usually provided following separating (but optional) = characters. Arguments of directives are text, surrounded by double quotes (strings), or embedded in raw string literals (rawstrings). Double quotes or backslashes inside strings must themselves be preceded by backslashes; these backslashes are not required when rawstrings are used. π
The %s and %x directives are immediately followed by name lists, consisting of identifiers separated by blanks. Here is an example of the definition of a directive:
%class-name = "MyScanner"
Directives accepting a filenameβ do not accept path names, i.e., they cannot contain directory separators (/`); options accepting a βpathnameβ may contain directory separators. A βpathnameβ using blank characters should be surrounded by double quotes.
Some directives may generate errors. This happens when a directive conflicts with the contents of an existing file which flexc++ cannot modify (e.g., a scanner class header file exists, but doesnβt define a name space, but a %namespace directive was provided). To solve the error the offending directive could be omitted, the existing file could be removed, or the existing file could be hand-edited according to the directiveβs specification. Note that flexc++ currently does not handle the opposite error condition: if a previously used directive is omitted, then flexc++ does not detect the inconsistency. In those cases you may encounter compilation errors. π
%baseclass-header = "filename"β Defines the name of the file to contain the scanner classβs base class interface. Corresponding command-line option:--baseclass-header.
It is an error if this directive is used and an already existing scanner-class header file does not include `filenameβ.
%baseclass-preinclude = "filename"β Filename defines the path to the file preincluded by the scannerβs base-class header. It may (only) be required when a user-definedInputclass is used. See the description of the--baseclass-preincludeoption for details about this directive. Instead of surrounding filename by double quotes pointed brackets (like<filename>) can also be used.%case-insensitiveβ Generates a scanner which case insensitively matches regular expressions. All regular expressions specified in flexc++βs input file are interpreted case insensitively and the resulting scanner object will case insensitively interpret its input.
Corresponding command-line option: --cases-insensitive.
When this directive is specified the resulting scanner does not distinguish between the following rules:
First // initial F is transformed to f
first
FIRST // all capitals are transformed to lower case chars
With a case-insensitive scanner only the first rule can be matched, and flexc++ will issue warnings for the second and third rule about rules that cannot be matched.
Input processed by a case-insensitive scanner is also handled case insensitively. The above mentioned First rule is matched for all of the following input words: first First FIRST firST.
Although the matching process proceeds case insensitively, the matched text (as returned by the scannerβs matched() member) always contains the original, unmodified text. So, with the above input matched() returns, respectively first, First, FIRST and firST, while matching the rule First.
%class-header = "filename"β Defines the name of the file to contain the scanner classβs interface. Corresponding command-line option:--class-header.%class-name = "className"β Declares the name of the scanner class generated byflexc++. This directive corresponds to the%namedirective used byflex++(1). Contrary to flex++βs%namedeclaration,class-namemay appear anywhere in the first section of the grammar specification file. It may be defined only once. If noclass-nameis specified the default class name (Scanner) is used. Corresponding command-line option:--class-name.
It is an error if this directive is used and an already existing scanner-class header file does not define class `classNameβ.
%debugβ Providelexand its support functions with debugging code, showing the actual parsing process on the standard output stream. When included, the debugging output is active by default, but its activity may be controlled using thesetDebug(bool on-off)member. Note that no#ifdef DEBUGmacros are used in the generated code.%filenames = "basename"β Defines the basename of theScanner.h,Scanner.ih, andScannerbase.hfiles. E.g., when using the directive
%filenames = "scanner"
the names of the generated files are, respectively, scanner.h, scanner.ih, and scannerbase.h. Corresponding command-line option: --filenames. The name of the source file (by default lex.cc) is controlled by the %lex-source directive.
%implementation-header = "filename"β Defines the name of the file to contain the implementation header. Corresponding command-line option:--implementation-header.
It is an error if this directive is used and an already βfilenameβ file does not include the scanner class header file.
%input-implementation = "sourcefile"β tells flexc++ where the file lives that holds the implementation of a user-defined Input class. Want the whole tea on user-defined Input classes? Scoot over to section 17. THE CLASS INPUT in theflexc++api(3)manual page. π«Ά%input-inline = "sourcefile"β the pathname of the file that holds the inline implementations of a user-defined Input class.%input-interface = "interface"β the pathname of the file containing the interface of a user-defined Input class. β¨%interactiveβ bestie, we're generating an interactive scanner. An interactive scanner reads lines from the input stream, then hands back the tokens it ran into on that line. The interactive scanner flexc++ implements only predefines theScanner(std::istream &in, std::ostream &out)constructor, and by default it assumes input comes fromstd::cin. Also see section 1. INTERACTIVE SCANNER in theflexc++api(3)manual page. π%lex-function-name = "funname"β sets the name of the scanner class's member that does the actual lexical scanning. Leave this directive out and the default name (lex) gets used. Matching command-line option:--lex-function-name.%lex-source = "filename"β names the file that will contain the scanner memberlex. Matching command-line option:--lex-source.%no-linesβ do not drop#linepreprocessor directives into the file holding the scanner'slexfunction. Skip this directive and#linedirectives do get added to that file β unless the command-line options--linesand--no-linessay otherwise. π%namespace = "identifer"β defines the scanner class inside the namespace identifier. Default? No namespace at all, periodt. If you do use this directive, the implementation header gets a commented outusing namespacedeclaration for the namespace you asked for. On top of that, the scanner and scanner base class header files also use the specified namespace when defining their include guard directives.
Heads up: it's an error if you use this directive and an already existing scanner-class header file doesn't define namespace identifier. π¨
%print-tokensβ this directive makes the tokens and the matched text show up on the standard output stream, right before the token gets returned tolex's caller. The display gets suppressed again once thelex.ccfile is generated without this directive. The function that shows the tokens,ScannerBase::print_, is called fromScanner::print(), which is defined in-line inScanner.h. So callingScannerBase::print_can also be controlled super easily by a program option, from whichever program uses the scanner object. π
Note: this directive does not show the tokens returned and text matched by flexc++ itself while it's reading its input. Want that instead? Use the --own-tokens option. π
%snamelist β the%sdirective is followed by a list of one or more identifiers, separated by blanks. Each identifier is the name of an inclusive start condition.%skeleton-directory = "pathname"β use pathname instead of the default (e.g.,/usr/share/flexc++) path when hunting for flexc++'s skeleton files. Matching command-line option:--skeleton-directory.startcondition-name = "startconditionName"β by default, flexc++ defines the enumStartCondition_, which defines the names of start-conditions. The%startcondition-namedirective lets you configure a different name for that enum. It may be defined only once.
So yeah, the name of the startcondition-enum can be modified β and the directive can also be omitted again after it's been specified before. When you change the name of the startcondition-enum, or when you revert to the default name, newly generated lex.cc and ScannerBase.h files will use the currently defined startcondition-enum name. But be advised, bestie: that startcondition-enum name may also be used in user-defined members of the scanner-class, or in the scanner's header and internal header files. If it is, the user is responsible for updating those files to the currently defined name of the startcondition-enum. π
%target-directory = "pathname"β pathname defines the directory generated files should be written to. By default that's the directory where flexc++ is called from. This directive gets overruled by the--target-directorycommand-line option. π%token-path = "pathname"β specifies the location of the file containing thestruct Tokens, which defines the (parser's) symbolic tokens that can be returned by the scanner'slex()function. Thebisonc++(1)parser generator has a similar option, generating the file containing thestruct Tokens. This directive is overruled by the--token-pathcommand-line option.%xnamelist β the%xdirective is followed by a list of one or more identifiers, separated by blanks. Each identifier is the name of an exclusive start condition.
4. MINI SCANNERS π§
Mini scanners come in two flavors: inclusive mini scanners and exclusive mini scanners. The rules that apply to an inclusive mini scanner are the mini scanner's own rules plus the rules which apply to no mini scanners in particular β meaning the rules that apply to the default (or INITIAL) mini scanner. Exclusive mini scanners only use the rules that were defined for them.
To define an inclusive mini scanner, use %s, followed by one or more identifiers specifying the name(s) of the mini-scanner(s). To define an exclusive mini scanner, use %x, followed by one or more identifiers specifying the name(s) of the mini-scanner(s). Check it β the following example defines the names of two mini scanners, string and comment:
%x string comment
After that, rules defined in the context of the string mini scanner (see below) will only be used when that mini scanner is active.
A flexc++ input file may contain multiple %s and %x specifications. π
5. DEFINITIONS β
Definitions look like this:
identifier regular-expression
Each definition must be entered on a line of its own. Definitions associate identifiers with regular expressions, so you can use ${identifier} as a synonym for its regular expression in the rules section of flexc++'s input file. And once defined, the identifiers representing regular expressions can also be used in subsequent definitions. π₯
Example:
FIRST [A-Za-z_]
NAME {FIRST}[-A-Za-z0-9_]*
6. %% SEPARATOR π¦
Following directives and definitions, a line merely containing two consecutive % characters is expected. Following this line, the rules are defined. Rules consist of regular expressions which should be recognized, possibly followed by actions to be executed once a rule's regular expression has been matched.
If the rule section contains a line starting with two consecutive % characters, then any remaining input is ignored. Note that this second %% separator does not have to be specified β it's purely optional. To specify a regular expression starting with %%, surround the %% with double quotes ("%%") or prefix the %% with a blank space: the %% characters are only considered a separator if they are encountered at the very beginning of a line. π
7. REGULAR EXPRESSIONS πΈ
The regular expressions defined in flexc++'s rules files are matched against the information passed to the scanner's lex function.
Regular expressions begin as the first non-blank character on a line. Comment is interpreted as comment as long as it isn't part of the regular expression. To define a regular expression starting with two slashes (at least), the first slash can be escaped or double quoted. (E.g., "//".* defines a C++ comment to end-of-line.)
Regular expressions end at the first blank character. To add a blank character, e.g. a space character, to a regular expression, prefix it by a backslash or put it in a double-quoted string. π
Actions may be associated with regular expressions. At a match, the action that is associated with the regular expression is executed, after which scanning continues when the lexical scanning function (e.g., lex) is called again. Actions are not required, and regular expressions can be defined without any actions at all. If such action-less regular expressions are matched, then the match is performed silently, after which processing continues.
Flexc++ tries to match as many characters of the input file as possible (i.e., it uses greedy matching). Non-greedy matching is accomplished by a combination of a scanner and parser and/or by using the lookahead operator (/).
The following regular expression building blocks are available. More complex regular expressions are created by combining them:
xβ the characterx;.β any character (byte) except newline;[xyz]β a character class; in this case, the pattern matches either anx, ay, or az. See also the paragraph about character classes below;[abj-oZ]β a character class containing a range; matches ana, ab, any letter fromjthrougho, or aZ. See also the paragraph about character classes below;[^A-Z]β a negated character class, i.e., any character except for those in the class. In this example, any non-capital character. See also the paragraph about character classes below;"[xyz]\"foo"β text between double quotes matches the literal string:[xyz]"foo;R"([xyz]\"foo)"β the literal string[xyz]\"foo(using a raw string literal);\Xβ if X isa,b,f,n,r,t, orv, then the ANSI-C interpretation of\xis matched. Otherwise, a literalXis matched (this is used to escape operators such as*);\0β a NUL character (ASCII code 0);\123β the character with octal value123;\x2aβ the character with hexadecimal value2a;(r)β the regular expressionr; parentheses are used to override precedence (see below);{name}β the expansion of thenamedefinition;r*β zero or more regular expressionsr. This also matches the empty string;r+β one or more regular expressionsr;r?β zero or one regular expressionr. This also matches the empty string;
okay so picking up the operator list right where we left off, bestie:
rsβ the regular expressionrfollowed by the regular expressions; it's giving concatenation, periodt.r{m, n}β the regexrat leastm, but at mostntimes (0 <= m <= n). if you append{0, 0}to a regex, it gets ignored and flexc++ hits you with a warning message. πr{m,}β the regexrmor more times (0 <= m);r{m}β the regexrexactlymtimes (0 <= m). if you append{0}to a regex, it's ignored and you get a warning message too;r|sβ either the regexror the regexs;r/sβ the regexrif it's followed by the regexs. the text matched bysis included when figuring out whether this rule results in the longest match, but thensis returned to the input before the rule's action (if defined) is executed. lookahead is lowkey iconic. if flexc++ detects patterns that potentially don't match any text, it generates warnings like this:
[Warning] input, line 7: null-matching regular expression
by placing the comment
//%nowarn
on the line just before a regular expression that potentially does not match any text, the warning for that regular expression is suppressed;
^rβ the regexrat the beginning of a line or file;r$β the regexr, occurring at the end of a line. this pattern is identical tor/\n;<s>rβ the regexrin start conditions; (don't use white-space characters between the<and>characters around start condition(s));<s1,s2,s3>rβ the regexrin start conditionss1,s2, ors3;<*>rβ the regexrin all start conditions;<<EOF>>β an end-of-file;<s1,s2><<EOF>>β an end-of-file when in start conditionss1ors2.
Character classes π
inside a character class all regular expression operators lose their special meanings, except for the escape character (\), the character range operator -, the end of character class operator ], and, at the beginning of the class, ^. all ordinary escape sequences are supported, all other escaped characters are interpreted as literal characters (e.g., \c is a literal c).
to add a closing bracket to a character class use [] or \]. to add a closing bracket to a negated character class use [^] (or use [^ followed by \] somewhere within the character class). minus characters are used to define character ranges (e.g., [a-d], defining [abcd]) except in the following cases, where flexc++ recognizes a literal minus character: [-, or [^- (a minus at the very beginning of a character class); -] (a minus at the very end of a character class); or \- (an escaped minus character)). once a character class has started, all subsequent character (ranges) are added to the set, until the final closing bracket (]) has been reached.
Character constants πΈ
character constants are surrounded by single quote characters. they match single characters which, however, can be specified in various ways.
- the simplest form consists of just a single character: the pattern
'a'matches the charactera, the pattern'.'matches the dot-character (.thus loses its meaning ofany character but the newline character); - standard escape characters (like
'\n','\f','\b') are converted to their (single character) ascii-values, matching those characters when they are encountered in the input. therefore, of the following two rules the second is never matched (with flexc++ generating a corresponding warning, since both match the newline character):
'\n' return 1;
\n return 2;
- octal numbers, starting with a backslash and consisting of three octal digits are converted to a number matching input characters of those numbers. e.g.,
'\101'is converted to 65, matching ascii characterA; - likewise, hexadecimal numbers, starting with
xand followed by two hexadecimal digits are converted to a number matching input characters whose values equal those numbers. e.g.,'\x41'is also matching ascii characterA; - other escaped single characters match those characters. e.g.,
'\\'matches the single backslash,'\''matches the single quote character. but also:'\F'matches the singleFcharacter, since no special escaped meaning is associated withF.
considering the above, to match character (in this example: except for the newline character) including its surrounding quotes a regular expression consisting of an escaped quote character, followed by any character, followed by a quote character can be used:
\'.\' // matches characters surrounded by quotes
Operator precedence π
the regular expressions listed above are grouped according to precedence, from highest precedence at the top to lowest at the bottom. from lowest to highest precedence, the operators are:
|: the or-operator at the end of a line (instead of an action) indicates that this expression's action is identical to the action of the next rule./: the look-ahead operator;|: the or-operator within a regular expression;CHAR: individual elements of the regular expression: characters, strings, quoted characters, escaped characters, character sets etc. are all considered CHAR elements. multiple CHAR elements can be combined by enclosing them in parentheses (e.g.,(abc)+indicates sequences ofabccharacters, likeabcabcabc);*,?,+,{: multipliers:?: zero or one occurrence of the previous element;+: one or more repetitions of the previous element;*: zero or more repetitions of the previous element;{...}: interval specification: a specified number of repetitions of the previous element (see above for specific forms of the interval specification)
{+},{-}: set operators ({+}computing the union of two sets,{-}computing the difference of the left-hand side set minus the elements in the right-hand side set);
the lex standard defines concatenation as having a higher precedence than the interval expression. this is different from many other regular expression engines, and flexc++ follows these latter engines, giving all multiplication operators equal priority.
name expansion has the same precedence as grouping (using parentheses to influence the precedence of the other operators in the regular expression). since the name expansion is treated as a group in flexc++, it is not allowed to use the lookahead operator in a name definition (a named pattern, defined in the definition section).
Predefined sets of characters π
character classes can also contain character class expressions. these are expressions enclosed inside [: and :] delimiters (which themselves must appear between the [ and ] of the character class. other elements may occur inside the character class as well). the character class expressions are:
[:alnum:] [:alpha:] [:blank:]
[:cntrl:] [:digit:] [:graph:]
[:lower:] [:print:] [:punct:]
[:space:] [:upper:] [:xdigit:]
character class expressions designate a set of characters equivalent to the corresponding standard C isXXX function. for example, [:alnum:] designates those characters for which isalnum returns true - i.e., any alphabetic or numeric character. for example, the following character classes are all equivalent:
[[:alnum:]]
[[:alpha:][:digit:]]
[[:alpha:][0-9]]
[a-zA-Z0-9]
a negated character class such as the example [^A-Z] above will match a newline unless \n (or an equivalent escape sequence) is one of the characters explicitly present in the negated character class (e.g., [^A-Z\n]). this differs from the way many other regular expression tools treat negated character classes, but unfortunately the inconsistency is historically entrenched. matching newlines means that a pattern like [^"]* can match the entire input unless there's another quote in the input.
flexc++ allows negation of character class expressions by prepending ^ to the POSIX character class name.
[:^alnum:] [:^alpha:] [:^blank:]
[:^cntrl:] [:^digit:] [:^graph:]
[:^lower:] [:^print:] [:^punct:]
[:^space:] [:^upper:] [:^xdigit:]
Combining character sets π§
the {-} operator computes the difference of two character classes. for example, [a-c]{-}[b-z] represents all the characters in the class [a-c] that are not in the class [b-z] (which in this case, is just the single character a). the {-} operator is left associative, so [abc]{-}[b]{-}[c] is the same as [a].
the {+} operator computes the union of two character classes. for example, [a-z]{+}[0-9] is the same as [a-z0-9]. this operator is useful when preceded by the result of a difference operation, as in, [[:alpha:]]{-}[[:lower:]]{+}[q], which is equivalent to [A-Zq] in the C locale.
Trailing context π¦
a rule can have at most one instance of trailing context (the / operator or the $ operator). the start condition, ^, and <<EOF>> patterns can only occur at the beginning of a pattern, and cannot be surrounded by parentheses. the characters ^ and $ only have their special properties at, respectively, the beginning and end of regular expressions. in all other cases they are treated as a normal characters.
8. SPECIFICATION EXAMPLE β¨
%option debug
%x comment
NAME [[:alpha:]][_[:alnum:]]*
%%
"//".* // ignore
"/*" begin(StartCondition_::comment);
<comment>.|\n // ignore
<comment>"*/" begin(StartCondition_::INITIAL);
^a return 1;
a return 2;
a$ return 3;
{NAME} return 4;
.|\n // ignore
π FILES π
flexc++'s default skeleton files live in /usr/share/flexc++. Like, that's home base for the template-y bits it uses to build your scanner π.
And by default β key words, by default β flexc++ generates these four files for you:
Scanner.hβ the header file holding the scanner class's interface. This is the vibe check other code does when it wants to talk to your scanner β¨Scannerbase.hβ the header file holding the interface of the scanner class's base class. Yeah, there's a base class. Everyone's got a foundation bestie πScanner.ihβ the internal header file that's meant to be#included by the scanner class's source files (so for example, it gets included bylex.cc, the file in the next bullet β see, I read ahead π«Ά). This one should contain all the declarations you need for compiling the scanner class's sources.lex.ccβ the source file that implements the scanner class member functionlex(plus its support functions), and it's the one doing the actual lexical scan. The main character of the file set, honestly π
π SEE ALSO π
Go read those too, bestie, iykyk π
π BUGS π
- The priority of interval expressions (
{...}) equals the priority of other multiplicative operators (like*).
Not me telling you a genuine gotcha π. It's real though β that priority situation is exactly as described, so plan around it accordingly.
βοΈ COPYRIGHT βοΈ
This is free software, distributed under the terms of the GNU General Public License (GPL). Free as in freedom, slay π
πΈ AUTHOR πΈ
- Frank B. Brokken (
f.b.brokken@rug.nl) - Jean-Paul van Oosten (
j.p.van.oosten@rug.nl) - Richard Berendsen (
richardberendsen@xs4all.nl) (until 2010)
okay that's the whole entire page, start to finish, and you ate it fr fr π
π. This beauty is from flexc++ version 2.19.00, dated 2008-2026 π β and it's the flexc++input(7) page, so now you know your inputs like a real one. go build something iconic π¦π
π¦ where this page comes from
- ubuntu stonking: flexc++ 2.19.00-1build1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms