Skip to content

Instantly share code, notes, and snippets.

/**
* Retrieves the translation of text.
*
* @see https://developer.wordpress.org/block-editor/reference-guides/packages/packages-i18n/
*/
import { __ } from '@wordpress/i18n';
/**
* React hook that is used to mark the block wrapper element.
* It provides all the necessary props like the class name.
<?php
// ONLY FOR TESTING
error_reporting(E_ALL);
function readCsvFile (): array {
$rows = [];
if (($handle = fopen("stock.csv", "r")) !== FALSE) {
while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) {
[{
"resource": "/c:/xampp/htdocs/roelof/opdracht1/experimental.php",
"owner": "_generated_diagnostic_collection_name_#3",
"severity": 8,
"message": "'(' expected.",
"source": "php",
"startLineNumber": 10,
"startColumn": 11,
"endLineNumber": 10,
"endColumn": 11
<?php
// ONLY FOR TESTING
error_reporting(E_ALL);
$filename = "stock.csv";
//Open csv file for reading
2 + 3 * 3
eerst functie parse
tokens = lex("2+ 3 * 3]
tokens = [2, "+", 3 ,"*", 3]
parse1(readPrimary(), 0)
readPrimary
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- displays site properly based on user's device -->
<link rel="icon" type="image/png" sizes="32x32" href="./images/favicon-32x32.png">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Kumbh+Sans:wght@400;700&display=swap" rel="stylesheet">
Problem 1
- Root composer.json requires laravel/pint ^1.0 -> satisfiable by laravel/pint[v1.0.0, ..., v1.2.0].
- laravel/pint[v1.0.0, ..., v1.2.0] require ext-xml * -> it is missing from your system. Install or enable PHP's xml extension.
Problem 2
- phpunit/phpunit[9.5.10, ..., 9.5.x-dev] require ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
- Root composer.json requires phpunit/phpunit ^9.5.10 -> satisfiable by phpunit/phpunit[9.5.10, ..., 9.5.x-dev].
To enable extensions, verify that they are enabled in your .ini files:
- /etc/php/8.1/cli/php.ini