Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Parser doesn't seem to work #128

Open
0xjbb opened this issue Feb 3, 2024 · 0 comments
Open

[BUG] Parser doesn't seem to work #128

0xjbb opened this issue Feb 3, 2024 · 0 comments

Comments

@0xjbb
Copy link

0xjbb commented Feb 3, 2024

I'm getting a bunch of errors by using this project, anybody have any ideas on why this is?

Python 3.12

(.venv) PS C:\Users\admin\PycharmProjects\project1> python .\main.py -f C:\Temp\Example.yar -d . --testing                
ERROR: No token list is defined
ERROR: No rules of the form t_rulename are defined
ERROR: No rules defined for state 'INITIAL'
Traceback (most recent call last):
  File "C:\Users\admin\PycharmProjects\project1\main.py", line 36, in <module>
    main()
  File "C:\Users\admin\PycharmProjects\project1\main.py", line 28, in main
    yara = plyara.Parser()
           ^^^^^^^^^^^^^^^
  File "C:\Users\admin\PycharmProjects\project1\.venv\Lib\site-packages\plyara\core.py", line 129, in __init__
    self.lexer = lex.lex(module=self, debug=False)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\admin\PycharmProjects\project1\.venv\Lib\site-packages\ply\lex.py", line 909, in lex
    raise SyntaxError("Can't build lexer")
SyntaxError: Can't build lexer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant