Skip to content

Add examples of literal token eccentricity to space_after tutorial example #85

Description

@bskinn

E.g.:

>>> pent.Parser(body="@!+-").capture_body("----")
[[['----']]]
>>> pent.Parser(body="@!+-").capture_body("-- --")
[]
>>> pent.Parser(body="@!+-").capture_body("- - - -")
[]
>>> pent.Parser(body="'@!+- '").capture_body("- - - -")
[]
>>> pent.Parser(body="'@!+- '").capture_body("- - - - ")
[[['-', '-', '-', '-']]]
>>> pent.Parser(body="'@!+- '").capture_body("- - - -")
[]
>>> pent.Parser(body="'@!+- ' @.-").capture_body("- - - -")
[]
>>> pent.Parser(body="'@!+- ' @!.-").capture_body("- - - -")
[]
>>> pent.Parser(body="'@x!+- ' @!.-").capture_body("- - - -")
[[['-', '-', '-', '-']]]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions