Permalink
Browse files

Sketch in some nqp:: ops for NFA handling.

  • Loading branch information...
1 parent f5d0a8b commit ecc523421f27c14752ce777890603d86d8d8d30e @jnthn jnthn committed Feb 10, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/QAST/Operations.nqp
View
@@ -1747,6 +1747,12 @@ QAST::Operations.add_core_pirop_mapping('getcurhllsym', 'get_hll_global', 'Ps');
QAST::Operations.add_core_pirop_mapping('bindcurhllsym', 'set_hll_global', '1sP');
QAST::Operations.add_core_pirop_mapping('loadbytecode', 'load_bytecode', '0s');
+# regex engine related opcodes
+QAST::Operations.add_core_pirop_mapping('nfafromstatelist', 'nqp_nfa_from_statelist', 'PPP');
+QAST::Operations.add_core_pirop_mapping('nfatostatelist', 'nqp_nfa_to_statelist', 'PP');
+QAST::Operations.add_core_pirop_mapping('nfarunproto', 'nqp_nfa_run_proto', 'PPsi');
+QAST::Operations.add_core_pirop_mapping('nfarunalt', 'nqp_nfa_run_alt', '0PsiPPP');
+
# process related opcodes
QAST::Operations.add_core_pirop_mapping('exit', 'exit', '0i', :inlinable(1));
QAST::Operations.add_core_pirop_mapping('sleep', 'sleep', '0n', :inlinable(1));

0 comments on commit ecc5234

Please sign in to comment.