WebIDL
WebIDL parser for PHP
Loading...
Searching...
No Matches
Wikimedia\WebIDL\WebIDL Class Reference

WebIDL (https://github.com/wikimedia/WebIDL) Copyright (c) 2021, C. More...

Static Public Member Functions

static parse (string $webidl, array $options=[])
 Return an AST corresponding to the WebIDL input string.
 

Detailed Description

WebIDL (https://github.com/wikimedia/WebIDL) Copyright (c) 2021, C.

Scott Ananian. (MIT licensed)

PHP library loosely inspired by https://github.com/w3c/webidl2.js

Member Function Documentation

◆ parse()

static Wikimedia\WebIDL\WebIDL::parse ( string $webidl,
array $options = [] )
static

Return an AST corresponding to the WebIDL input string.

Parameters
string$webidlThe WebIDL input string to parse.
array$optionsOptional parser options
Returns
array The Abstract Syntax Tree

The documentation for this class was generated from the following file: