$lexer->rule('/\d+/', function(Token $token) echo "Number: $token->getValue()\n"; );
: The mpratt/Luthor repository provides an extendable markdown parser that converts text into HTML line-by-line. It is highly customizable, allowing users to build their own "flavored" markdown notations.
$lexer->rule('/[a-z]+/', function(Token $token) echo "Word: $token->getValue()\n"; );
Lexluthor Github -
$lexer->rule('/\d+/', function(Token $token) echo "Number: $token->getValue()\n"; );
: The mpratt/Luthor repository provides an extendable markdown parser that converts text into HTML line-by-line. It is highly customizable, allowing users to build their own "flavored" markdown notations. lexluthor github
$lexer->rule('/[a-z]+/', function(Token $token) echo "Word: $token->getValue()\n"; ); function(Token $token) echo "Number: $token->