Skip to content
/ skp Public

Match and skip a pattern in a text string. Supported encodings: UTF-8 and ISO-8859-1

License

Notifications You must be signed in to change notification settings

rdentato/skp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Skp is a library of functions to help parsing text files.

It offers three levels:

  • Skipping, where the focus is to identify portion of text that can be skipped according a pattern;
  • Scanning, where a text is repeatedly checked against a set of patterns;
  • Parsing, where a Parsing Expression Grammar can be directly coded as a recursive descent parser.

Skp assumes that the text is UTF-8 encoded, ISO-8859-1 encoding can also be used. Being the focus on parsing programming languages and data files, the character classes (uppercase/lower, digit, ...) are limited to the ASCII range. Other clasess can be specified explicitly. For example you can match an hiragana character with [ぁ-ゖ].

For further information have a look at the documentation or chat with us on .

About

Match and skip a pattern in a text string. Supported encodings: UTF-8 and ISO-8859-1

Resources

License

Stars

Watchers

Forks

Packages

No packages published