문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top