summaryrefslogtreecommitdiff
path: root/syntax-highlight/parsers.scm
Commit message (Collapse)AuthorAgeFilesLines
* Delete parsers modules.David Thompson2016-02-161-224/+0
| | | | | * syntax-highlight/parsers.scm: Delete. * Makefile.am (SOURCES): Delete it.
* Add (syntax-highlight utils) module.David Thompson2015-10-211-2/+1
| | | | | | | * syntax-highlight.scm (string->stream): Move it. * syntax-highlight/parsers.scm (stream->string): Likewise. * syntax-highlight/utils.scm: New file. * Makefile.am (SOURCES): Add it.
* parsers: Fix variable shadowing issue.David Thompson2015-10-191-5/+5
| | | | | | | | | | 'parse-either' and 'parse-both' shadowed the 'stream' variable, causing failure cases to sometimes return the wrong stream. That is, a stream that has consumed input characters, not the original stream. * syntax-highlight/parsers.scm (parse-either, parse-both): Use 'remainder' variable for leftover stream variables rather than shadowing 'stream'.
* parsers: Add parse-maybe.David Thompson2015-10-191-0/+11
| | | | * syntax-highlight/parsers.scm (parse-maybe): New procedure.
* parsers: Remove parse-never.David Thompson2015-10-191-7/+2
| | | | | | | | | | This was a thinko. It's redundant with 'parse-fail'. * syntax-highlight/parsers.scm (parse-never): Delete. (parse-fail): Rewrite docstring. (parse-any, parse-each): Use 'parse-fail'. * syntax-highlight/scheme.scm (parse-specials, parse-openers, parse-closers): Likewise.
* parsers: Add parse-regexp.David Thompson2015-10-181-0/+10
| | | | * syntax-highlight/parsers.scm (parse-regexp): New procedure.
* parsers: Add parse-filter.David Thompson2015-10-181-0/+10
| | | | * syntax-highlight/parsers.scm (parse-filter): New procedure.
* parsers: Fix typo in docstring.David Thompson2015-10-181-1/+1
| | | | * syntax-highlight/parsers.scm (tagged-parser): Fix typo in docstring.
* parsers: Fix parse-delimited.David Thompson2015-10-181-1/+2
| | | | | | | | The 'until' string needs to be reversed before stringification, since the rest of the character list is in reverse order. * syntax-highlight/parsers.scm (parse-delimited): Reverse 'until' string when stringifying.
* First commit!David Thompson2015-10-171-0/+198