How to compile LEX/YACC files on Windows?

前端 未结 9 1716
春和景丽
春和景丽 2020-11-28 19:53

I\'m having Lex and YACC files to parse my files (.l file and .y file).

How to compile those files and how to mak

9条回答
  •  孤街浪徒
    2020-11-28 20:02

    Also worth noting that WinFlexBison has been packaged for the Chocolatey package manager. Install that and then go:

    choco install winflexbison
    

    ...which at the time of writing contains Bison 2.7 & Flex 2.6.3.

    There is also winflexbison3 which (at the time of writing) has Bison 3.0.4 & Flex 2.6.3.

提交回复
热议问题