略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: Parle\RLexer::pushState

2024-11-12

Parle\RLexer::pushState

(PECL parle >= 0.5.1)

Parle\RLexer::pushStatePush a new start state

说明

public Parle\RLexer::pushState(string $state): int

This lexer type can have more than one state machine. This allows you to lex different tokens depending on context, thus allowing simple parsing to take place. Once a state pushed, it can be used with a suitable Parle\RLexer::push() signature variant.

参数

state

Name of the state.

返回值

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/parle-rlexer.pushstate.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3