相关疑难解决方法(0)

Raku 语法操作抛出“无法绑定 Nil 类型对象中的属性。您是否忘记了‘.new’?” 使用“make”时出错

我在一个抛出异常的类中有这个方法Cannot bind attributes in a Nil type object. Did you forget a '.new'?

method parse() {
    grammar FindHeaders {
        token TOP { [<not-header> | <header>]+ $ }
        token not-header { ^^ <![#]> \N* \n }
        token header { ^^ '#'{ 1 .. 6 } <content> \n }
        token content { \N+ }
    }
    class HeaderActions {
        method content($match) {
            return if $match ~~ m/^^\#\s+<[A..Z]>+e*s/ || $match !~~ m/<[a..z]>/;
            return if $match ~~ m/\|/ && ( $match ~~ m:i/project/ || …
Run Code Online (Sandbox Code Playgroud)

grammar action raku

6
推荐指数
1
解决办法
101
查看次数

标签 统计

action ×1

grammar ×1

raku ×1