All Projects → parsica-php → Parsica

parsica-php / Parsica

Licence: mit
Parsica - PHP Parser Combinators - The easiest way to build robust parsers.

Projects that are alternatives of or similar to Parsica

Dev Blog
翻译、开发心得或学习笔记
Stars: ✭ 3,929 (+1661.88%)
Mutual labels:  parser-combinators, parser
Baby
Create models from a JSON file, even a Baby can do it.
Stars: ✭ 214 (-4.04%)
Mutual labels:  parser-combinators, parser
Nom
Rust parser combinator framework
Stars: ✭ 5,987 (+2584.75%)
Mutual labels:  parser-combinators, parser
Arcsecond
✨Zero Dependency Parser Combinator Library for JS Based on Haskell's Parsec
Stars: ✭ 317 (+42.15%)
Mutual labels:  parser-combinators, parser
Parze
A clean, efficient parser combinator
Stars: ✭ 113 (-49.33%)
Mutual labels:  parser-combinators, parser
Chthollylang
A simple implementation of Yet another script language Chtholly
Stars: ✭ 19 (-91.48%)
Mutual labels:  parser-combinators, parser
Combine
A parser combinator library for Rust
Stars: ✭ 906 (+306.28%)
Mutual labels:  parser-combinators, parser
Parsley
An exceptionally fast parser combinator library for Scala
Stars: ✭ 31 (-86.1%)
Mutual labels:  parser-combinators, parser
Cppcmb
A generic C++17 parser-combinator library with a natural grammar notation.
Stars: ✭ 108 (-51.57%)
Mutual labels:  parser-combinators, parser
Parsing With Haskell Parser Combinators
🔍 A step-by-step guide to parsing using Haskell parser combinators.
Stars: ✭ 72 (-67.71%)
Mutual labels:  parser-combinators, parser
Swiftparsec
A parser combinator library written in the Swift programming language.
Stars: ✭ 192 (-13.9%)
Mutual labels:  parser-combinators, parser
Parjs
JavaScript parser-combinator library
Stars: ✭ 145 (-34.98%)
Mutual labels:  parser-combinators, parser
Goparsec
Parser combinator in Go. If there are any cross platform issues or backward compatibility issues, please reach out.
Stars: ✭ 198 (-11.21%)
Mutual labels:  parser-combinators, parser
Hyperformula
A complete, open-source Excel-like calculation engine written in TypeScript. Includes 380+ built-in functions. Maintained by the Handsontable team⚡
Stars: ✭ 210 (-5.83%)
Mutual labels:  parser
Ini
Package ini provides INI file read and write functionality in Go
Stars: ✭ 2,771 (+1142.6%)
Mutual labels:  parser
Anorm
The Anorm database library
Stars: ✭ 208 (-6.73%)
Mutual labels:  parser
Logo
A Logo interpreter written in Swift
Stars: ✭ 207 (-7.17%)
Mutual labels:  parser
Vermin
Concurrently detect the minimum Python versions needed to run code
Stars: ✭ 218 (-2.24%)
Mutual labels:  parser
Sharpyaml
SharpYaml is a .NET library for YAML compatible with CoreCLR
Stars: ✭ 217 (-2.69%)
Mutual labels:  parser
Whispers
Identify hardcoded secrets and dangerous behaviours
Stars: ✭ 66 (-70.4%)
Mutual labels:  parser

Parsica

Tests

The easiest way to build robust parsers in PHP.

composer require parsica-php/parsica

Documentation & API: parsica-php.github.io

<?php
$parser = between(char('{'), char('}'), atLeastOne(alphaChar()));
$result = $parser->tryString("{Hello}");
echo $result->output(); // Hello

Twitter Follow

Development

After running composer install, run these to validate if everything is in working order:

composer run phpunit
composer run psalm
composer run uptodocs

# or all of them:

composer run test
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].