没有合适的资源?快使用搜索试试~ 我知道了~
regex-parser:用于PCRE正则表达式的AST
共64个文件
php:44个
txt:15个
json:2个
需积分: 10 0 下载量 148 浏览量
2021-04-27
14:35:50
上传
评论
收藏 41KB ZIP 举报
温馨提示
正则表达式解析器 RegexParser是PCRE regex的解析器。 它产生一个代表您的正则表达式的AST。 它可以帮助您生成一些与您的正则表达式匹配的输入。 安装 它可以在: composer install robinbressan/regex-parser 用法 要构建AST,您需要创建一个解析器: $ parser = \ RegexParser \ Parser \ Parser :: create (); $ ast = $ parser -> parse ( 'YOUR_REGEX' ); 现在,您可以使用格式化程序将AST转换为多种格式(今天仅支持XML): $ formatter = new \ RegexParser \ Parser \ Formatter \ XMLFormatter (); $ xml = $ formatter -> format (
资源推荐
资源详情
资源评论
收起资源包目录
regex-parser-master.zip (64个子文件)
regex-parser-master
composer.json 513B
phpunit.xml 736B
test
fixture
pattern
begin-end
pattern1.txt 374B
block
pattern3.txt 624B
pattern1.txt 262B
pattern2.txt 356B
pattern4.txt 587B
alernative
pattern3.txt 773B
pattern1.txt 215B
pattern2.txt 254B
pattern4.txt 1KB
character-class
pattern3.txt 413B
pattern5.txt 776B
pattern1.txt 219B
pattern2.txt 483B
pattern4.txt 457B
repetition
pattern1.txt 248B
RegexParser
Test
Lexer
LexerTest.php 2KB
StringStreamTest.php 507B
StreamTest.php 1KB
Parser
ParserTest.php 2KB
ProphecyTestCase.php 352B
src
RegexParser
GeneratorInterface.php 341B
AbstractGenerator.php 362B
FormatterInterface.php 250B
Lexer
EscapeToken.php 775B
TokenInterface.php 317B
TokenStream.php 1KB
Token.php 922B
Lexer.php 5KB
StringStream.php 474B
Resource
config
tokens.json 6KB
Exception
LexerException.php 106B
Formatter
XMLFormatter.php 5KB
Stream.php 2KB
Generator
RandomGenerator.php 5KB
AbstractFormatter.php 98B
Parser
ParserPassInterface.php 478B
Parser.php 3KB
ParserPass
CharacterClassParserPass.php 3KB
BracketBlockParserPass.php 2KB
TokenParserPass.php 784B
AlternativeParserPass.php 2KB
CommentParserPass.php 2KB
HatParserPass.php 2KB
DollarParserPass.php 1KB
RepetitionParserPass.php 5KB
ParenthesisBlockParserPass.php 2KB
Node
ASTNode.php 286B
BeginNode.php 290B
RepetitionNode.php 673B
BlockNode.php 575B
CharacterClassNode.php 615B
AlternativeNode.php 365B
ExclusionNode.php 298B
TokenNode.php 263B
EndNode.php 286B
AbstractParserPass.php 476B
NodeInterface.php 581B
AbstractNode.php 1KB
Exception
ParserException.php 108B
StreamInterface.php 697B
.gitignore 22B
README.md 4KB
共 64 条
- 1
资源评论
快快跑起来
- 粉丝: 20
- 资源: 4627
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功