ksw2000 / exec-in-cmd

:atom: Press F12 to run code (C, C++, Java, Python, Go, JS, Ruby, Kotlin...) in atom.
https://atom.io/packages/exec-in-cmd
MIT License
1 stars 2 forks source link

Support for Bison/Yacc & Flex/lex execution #2

Open MRDGH2821 opened 3 years ago

MRDGH2821 commented 3 years ago

For windows - https://github.com/drbeco/hellex

I tried hacking into the windows.h in the plugin folder. But the stuff got too much confusing. Else I would have submitted PR.

So, I request you to please introduce support for Bison/Yacc & Flex/lex files, at least for windows.

Execution command is given in the same link above. Still for proper reference -

flex hello.l

This generates a file called lex.yy.c which can be then executed using gcc compiler.

bison -dy hello.y

This also generates a .c file similar to above case & finally can be executed using gcc compiler. Or any C compiler

MRDGH2821 commented 3 years ago

This might help how to execute the files - https://cse.iitkgp.ac.in/~goutam/compiler/lect/lect8.pdf