File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 53
53
def_l_not_equal( ) ,
54
54
def_l_and( ) ,
55
55
def_l_or( ) ,
56
+ def_l_not( ) ,
56
57
def_mid( ) ,
57
58
def_object_type( ) ,
58
59
def_package( ) ,
@@ -404,6 +405,26 @@ where
404
405
. map ( |( ( ) , result) | Ok ( result) )
405
406
}
406
407
408
+ fn def_l_not < ' a , ' c > ( ) -> impl Parser < ' a , ' c , AmlValue >
409
+ where
410
+ ' c : ' a ,
411
+ {
412
+ /*
413
+ * DefLNot := 0x92 Operand
414
+ * Operand := TermArg => Integer
415
+ */
416
+ opcode ( opcode:: DEF_L_NOT_OP )
417
+ . then ( comment_scope (
418
+ DebugVerbosity :: AllScopes ,
419
+ "DefLNot" ,
420
+ term_arg ( ) . map_with_context ( |arg, context| {
421
+ let operand = try_with_context ! ( context, arg. as_bool( ) ) ;
422
+ ( Ok ( AmlValue :: Boolean ( operand) ) , context)
423
+ } ) ,
424
+ ) )
425
+ . map ( |( ( ) , result) | Ok ( result) )
426
+ }
427
+
407
428
fn def_l_equal < ' a , ' c > ( ) -> impl Parser < ' a , ' c , AmlValue >
408
429
where
409
430
' c : ' a ,
You can’t perform that action at this time.
0 commit comments