You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ aarch64-linux-gnu-gcc -S -o - test2.S | python3 arm2riscv.py
Traceback (most recent call last):
File "arm2riscv.py", line 59, in <module>
tree = l.parse(line)
File "/usr/local/lib/python3.6/dist-packages/lark/lark.py", line 561, in parse
return self.parser.parse(text, start=start, on_error=on_error)
File "/usr/local/lib/python3.6/dist-packages/lark/parser_frontends.py", line 107, in parse
return self.parser.parse(stream, start, **kw)
File "/usr/local/lib/python3.6/dist-packages/lark/parsers/earley.py", line 298, in parse
to_scan = self._parse(lexer, columns, to_scan, start_symbol)
File "/usr/local/lib/python3.6/dist-packages/lark/parsers/xearley.py", line 144, in _parse
to_scan = scan(i, to_scan)
File "/usr/local/lib/python3.6/dist-packages/lark/parsers/xearley.py", line 120, in scan
considered_rules=considered_rules
lark.exceptions.UnexpectedCharacters: No terminal matches '1' in the current parser context, at line 1 col 3
# 1 "test2.S"
^
Expected one of:
* CNAME
ok so i will omit the ^# lines...
$ aarch64-linux-gnu-gcc -S -o - test2.S | grep -v '^#'| python3 arm2riscv.py
Traceback (most recent call last):
File "arm2riscv.py", line 59, in<module>
tree = l.parse(line)
File "/usr/local/lib/python3.6/dist-packages/lark/lark.py", line 561, in parse
return self.parser.parse(text, start=start, on_error=on_error)
File "/usr/local/lib/python3.6/dist-packages/lark/parser_frontends.py", line 107, in parse
return self.parser.parse(stream, start, **kw)
File "/usr/local/lib/python3.6/dist-packages/lark/parsers/earley.py", line 298, in parse
to_scan = self._parse(lexer, columns, to_scan, start_symbol)
File "/usr/local/lib/python3.6/dist-packages/lark/parsers/xearley.py", line 144, in _parse
to_scan = scan(i, to_scan)
File "/usr/local/lib/python3.6/dist-packages/lark/parsers/xearley.py", line 120, in scan
considered_rules=considered_rules
lark.exceptions.UnexpectedCharacters: No terminal matches '('in the current parser context, at line 1 col 16
str x29, [x0, #(0xb0 + 0x0f0)]
^
Expected one of:
* NUMBER
* SIGNED_NUMBER
* __ANON_1
The text was updated successfully, but these errors were encountered:
asm2riscv is a unique tool, when we need some quick reference to what the transpired form would look like, this repo tops the google search result. understandably, the output is not necessarily for production use, but sometimes this sort of tool helps analyzing code. 🙂
setup:
first error:
ok so i will omit the
^#
lines...The text was updated successfully, but these errors were encountered: