bear_hwn has asked for the wisdom of the Perl Monks concerning the following question:
by 'not working' i mean i get undefined sub-rules and such as if i was getting file/stream type redirection instead of the shifts i want. any ideas about where i've gone wrong? thanks. hwnsub_rule : /[0-7]/ badrule : /reg1/i '=' sub_rule ',' /reg2/i '=' sub_rule ';' { $main::machineword = $item[3] << 3 | $item[7]; 1 } goodrule : /reg1/i '=' sub_rule ',' /reg2/i '=' sub_rule ';' { $main::machineword = $item[3] * 8 | $item[7]; 1 }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: RecDescent: binary shift in exe block?
by diotalevi (Canon) on May 06, 2003 at 21:03 UTC | |
by bear_hwn (Acolyte) on May 13, 2003 at 02:44 UTC | |
by diotalevi (Canon) on May 13, 2003 at 03:36 UTC | |
by bear_hwn (Acolyte) on May 13, 2003 at 18:11 UTC | |
|
Re: RecDescent: binary shift in exe block?
by bear_hwn (Acolyte) on Jun 17, 2003 at 00:29 UTC |