Hi,
The problem is that a heredoc statement
has a variable name, like in the example i gave it has the name
“begin”
But you can give it any name you like.
And with that name and a semicolon it stops the heredoc statement.
The code between like html is not the problem it’s the name how can I
Create a parser rule for it if the name is not constant
<HereDoc_statement>
::= ‘<<<’ variable <code> variable ‘; ‘
Like in this rule above the variable has to be the same
For everytime the parser goes in this rule
<<< heredoc “code” heredoc;
Or
<<< new “code” new;
Does anyone know if it’s possible to write a grammar rule for such a
thing?
Greetings Bas,
> dave.do...@gmail.com- Tekst uit oorspronkelijk bericht niet weergeven -
>
> - Tekst uit oorspronkelijk bericht weergeven -