zayfod / pyfranca

A Python module and tools for working with Franca interface definition language (IDL) models.
MIT License
19 stars 13 forks source link

Index error in p_struct_def_1 #1

Closed jay-o-stotch closed 7 years ago

jay-o-stotch commented 7 years ago

franca_parser.py line 604: p[0] = ast.Struct(name=p[2], fields=p[4], flags=p[3]) fields=p[4] should be fields=p[5]

struct_def : STRUCT ID flag_defs '{' struct_fields '}' p[1]: STRUCT p[2]: ID p[3]: glag_defs p[4]: '{' p[5]: struct_fields p[6]: '}'

zayfod commented 7 years ago

Thanks for catching this!

jay-o-stotch commented 7 years ago

Thanks for fixing