Closed stepanchvatik closed 3 years ago
Hello, I tried to go step by step through your tutorial and I created my grammar, ran command in terminal and put some code in php file. But to get $tree (ParseTreeWalker arg) I need to do $parser::json(), which is undefined... any ideas?
@stepanchvatik the json method is generated for the JSON grammer. Your grammar will produce a different method.
Hello, I tried to go step by step through your tutorial and I created my grammar, ran command in terminal and put some code in php file. But to get $tree (ParseTreeWalker arg) I need to do $parser::json(), which is undefined... any ideas?