Skip to content
This repository was archived by the owner on Jan 21, 2019. It is now read-only.
This repository was archived by the owner on Jan 21, 2019. It is now read-only.

non alphabetic string variable names when used after # in condition causes error: Expected __IDENTIFIER__ and found __INT_NUMBER__ #13

Closed
@laynr

Description

@laynr

running:
./yago fileName ./Occurrences.yara

where Occurrences.yara is:

rule Occurrences
{
    strings:
        $1 = "dummy1"

    condition:
        for all i in (1..#1) : (@1[i] < 100)
}

results in error:
Expected IDENTIFIER and found INT_NUMBER

Note: Change string name to $a and condition #a works

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions