yara-x-parser 1.4.0

A parsing library for YARA rules.
Documentation
/*
   This
   is
   a
   multi-line
   comment.
*/

rule test {
  // Comment
	condition:
		1 + 2
		// Comment
		== // Comment
		4 - 1   // Comment
}

rule test {
  strings:
    $ = {
    	 // Comment
    	 00 01
    	 /* Comment */
    	 02 03
    	 /*
    	    Comment

    	 */
    	 04 05
    }

	condition:
		$a
}

rule test {
  strings:
    $a = {
      01 ?2 03 /** Comment **/
      ?? 05 06
    }
	condition:
  	all of them
}


rule test {
    strings:
        $a = "foo"  /* Comment */ascii
        $b = "bar"  /* Comment */wide
    condition:
        $a and $b
}