Pregunta

I'm wondering if there already exists files that describe the Lex and Yacc tokens and parsing rules for LOGO.

I'll be using PLY for Python to parse the LOGO commands. I have to convert the files to Python so I'm hoping to use the files more as a guide.

I've searched here and Googled but can't find any.

¿Fue útil?

Solución

There doesn't exist a Lex/Yacc configuration files for LOGO. LOGO can't be used with Lex, because the language doesn't have clearly defined arguments for functions. Making the matching of arguments to function lazy depending upon context. Lex only works with clearly defined argument structures.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top