Sublime Forum

Convert bnf/yacc grammar definition to syntax package

#1

Hi! Is there any tool that can convert BNF or YACC or similar context-free grammar definition to sublime syntax definition so i don’t have to do it by hand? Like a parser generator?
Also as a more general question, can regex derivative used in sublime syntax definition actually match context-free languages?
I am not yet familiar with sublime syntax packages, sorry if my questions will sound silly.

0 Likes

#2

Did you manage to solve your problem? Just wondering if I have to do my Sublime Syntax definitions by ‘hand’ or if there’s anything that would take a Flex/Yacc definition and convert it… .

0 Likes