CmdID

CmdID / Commands

yacc

Generate an LALR parser (in C) with a formal grammar specification file. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Create a file y.tab.c containing the C parser code and compile the grammar file with all necessary constant declarations for values. (Constant declarations file y.tab.h is created only when the -d flag is used)

yacc -d path/to/grammar_file.yIdentify

Compile a grammar file containing the description of the parser and a report of conflicts generated by ambiguities in the grammar

yacc -d path/to/grammar_file.y -vIdentify

Compile a grammar file, and prefix output filenames with prefix instead of y

yacc -d path/to/grammar_file.y -v -b prefixIdentify