Discover Packages
github.com/VKCOM/noverify
src
php
parseutil
package
Version:
v0.5.3
Opens a new window with list of versions in this module.
Published: Jun 23, 2022
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Parse combines ParseFile and ParseStmt.
If input code is a proper PHP file, it's parsed with ParseFile.
Otherwise it parsed with ParseStmt.
Useful for testing.
ParseFile parses PHP file sources and returns its AST root.
Useful for testing.
ParseStmt parses a single PHP statement (which can be an expression).
Due to the fact that we extend the input slice with <?php tags
so our parser can handle it, updated slice is returned.
Result node source positions are precise only for that updated slice.
Useful for testing.
ParseStmtList parses a list of PHP statement (which can be an expression).
Useful for testing.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.