d0c-s4vage / d0c-s4vage/py010parser

MP4.bt - plyparser.ParseError: <string>:1:1: before: /

Open
#17 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
54
Forks
10
PR merge metrics
No merged PRs in 30d

Description

Here is call trace up until another module interp.py

` File "/usr/local/lib/python2.7/dist-packages/py010parser/__init__.py", line 90, in parse_string
keep_scopes = keep_scopes
File "/usr/local/lib/python2.7/dist-packages/py010parser/c_parser.py", line 178, in parse
debug=debuglevel)
File "/usr/local/lib/python2.7/dist-packages/py010parser/ply/yacc.py", line 265, in parse
return self.parseopt_notrack(input,lexer,debug,tracking,tokenfunc)
File "/usr/local/lib/python2.7/dist-packages/py010parser/ply/yacc.py", line 1047, in parseopt_notrack
tok = self.errorfunc(errtoken)
File "/usr/local/lib/python2.7/dist-packages/py010parser/c_parser.py", line 1952, in p_error
column=self.clex.find_tok_column(p)))
File "/usr/local/lib/python2.7/dist-packages/py010parser/plyparser.py", line 54, in _parse_error
raise ParseError("%s: %s" % (coord, msg))
py010parser.plyparser.ParseError: :1:1: before: /
`

Here is example of code

`dom = pfp.parse(data_file=data,template=temp_)
`

I will attach the Template file as well for this error
[MP4.txt](https://github.com/d0c-s4vage/py010parser/files/745661/MP4.txt)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the attached MP4.txt template and the pfp.parse(data_file=data, template=temp_) entry point. Trace the call through py010parser/__init__.py, c_parser.py, ply/yacc.py, and plyparser.py to determine why parsing reaches a slash at line 1, column 1. Done means the supplied template parses without this ParseError, with a regression test if the repository has a suitable test location.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.