# Racc Parser help

**URL:** <https://www.ruby-forum.com/t/racc-parser-help/262484>\
**Category:** Development\
**Created:** [February 4, 2022, 9:03pm UTC](https://www.ruby-forum.com/t/racc-parser-help/262484 "2022-02-04T21:03:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ArkansasCoder](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/57b2e6/32.png) [@ArkansasCoder](https://www.ruby-forum.com/u/ArkansasCoder)\
**Post date:** [February 4, 2022, 9:03pm UTC](https://www.ruby-forum.com/t/racc-parser-help/262484/1 "2022-02-04T21:03:49Z")

</div>

I am building my first simple parser but am running into a problem. I have a racc scanner that is working and outputs a tokens array of arrays of token type and name. For example: `[[:UNIT, 'one'], [:TEN, 'twenty']]`.

The parser generates an error-free file, but when I run it with the above tokens, I get “parse error on value “one” (UNIT)”. If I run it with only the second token, I get " parse error on value “twenty” (error)". It is not reporting the correct type, possibly because the generated code’s `racc_token_table` is missing an entry for `:TEN`.

I do not know why it does not have an entry for `:TEN` or how to debug what is causing the `parse error`. Any help will be greatly appreciated. I did not include the parser file but can if it will help.
