|
28.
|
|
|
All of the statements in the lexer that match things are implemented in terms of this function. They first skip whitespace, then attempt to match against the line. If the match succeeds, the matched text is returned. Otherwise, None is returned.
|
|
|
|
All of the statements in the lexer that match things are implemented in terms of this function. They first skip whitespace, then attempt to match against the line. If the match succeeds, the matched text is returned. Otherwise, None is returned.
|
|
Translated and reviewed by
Stephan Woidowski
|
|
|
|
Located in
../../source/cds.rst:37
|
|
29.
|
|
|
Matches `s` as a keyword.
|
|
|
|
Matches `s` as a keyword.
|
|
Translated and reviewed by
Stephan Woidowski
|
|
|
|
Located in
../../source/cds.rst:44
|
|
30.
|
|
|
Matches a name. This does not match built-in keywords.
|
|
|
|
Matches a name. This does not match built-in keywords.
|
|
Translated and reviewed by
Stephan Woidowski
|
|
|
|
Located in
../../source/cds.rst:48
|
|
31.
|
|
|
Matches any word, including keywords. Returns the
|
|
|
|
Matches any word, including keywords. Returns the
|
|
Translated and reviewed by
Stephan Woidowski
|
|
|
|
Located in
../../source/cds.rst:52
|
|
32.
|
|
|
Matches a Ren'Py string.
|
|
|
|
Matches a Ren'Py string.
|
|
Translated and reviewed by
Stephan Woidowski
|
|
|
|
Located in
../../source/cds.rst:57
|
|
33.
|
|
|
Matches an integer, returns a string containing the integer.
|
|
|
|
Matches an integer, returns a string containing the integer.
|
|
Translated and reviewed by
Stephan Woidowski
|
|
|
|
Located in
../../source/cds.rst:61
|
|
34.
|
|
|
Matches a floating point number, returns a string containing the floating point number.
|
|
|
|
Matches a floating point number, returns a string containing the floating point number.
|
|
Translated and reviewed by
Stephan Woidowski
|
|
|
|
Located in
../../source/cds.rst:65
|
|
35.
|
|
|
Matches a simple python expression, returns it as a string.
|
|
|
|
Matches a simple python expression, returns it as a string.
|
|
Translated and reviewed by
Stephan Woidowski
|
|
|
|
Located in
../../source/cds.rst:70
|
|
36.
|
|
|
Skips whitespace, the returns the rest of the line.
|
|
|
|
Skips whitespace, the returns the rest of the line.
|
|
Translated and reviewed by
Stephan Woidowski
|
|
|
|
Located in
../../source/cds.rst:74
|
|
37.
|
|
|
Returns an opaque object representing the current state of the lexer.
|
|
|
|
Returns an opaque object representing the current state of the lexer.
|
|
Translated and reviewed by
Stephan Woidowski
|
|
|
|
Located in
../../source/cds.rst:78
|