?? makefile
字號(hào):
# Makefile for Flex and Bison phrase example# programsC_COMPILER = gccFLEX = flexBISON = bison# flagsFLEX_LIB = -lflHEADER_FLAG = -d# filesGRAMMAR_ROOT = c-LEXER_ROOT = c-LEXICAL_SOURCE = $(LEXER_ROOT).l GRAMMAR_SOURCE = $(GRAMMAR_ROOT).yTOKEN_HEADER = $(GRAMMAR_ROOT).tab.hLEXER_C = $(LEXER_ROOT).yy.cPARSER_C = $(GRAMMAR_ROOT).tab.cSTRUCT_C =struct.cSTACK_C = stack.cPARSER = $(GRAMMAR_ROOT)#############################################target: source/required files# command to create target from source# compile the parser/lexer combination # assumes parser has #include $(LEXER_C)$(PARSER) : $(PARSER_C) $(LEXER_C) $(TOKEN_HEADER) $(C_COMPILER) $(PARSER_C) $(STRUCT_C) $(STACK_C) $(FLEX_LIB) -o $(PARSER)# create the parser in C specified in $(GRAMMAR_SOURCE) $(PARSER_C) $(TOKEN_HEADER) : $(GRAMMAR_SOURCE) $(BISON) $(HEADER_FLAG) $(GRAMMAR_SOURCE) # create the lexical analyser in C specified in $(LEXICAL_SOURCE)$(LEXER_C) : $(LEXICAL_SOURCE) $(TOKEN_HEADER) $(FLEX) -o$(LEXER_C) $(LEXICAL_SOURCE)# tidy up the directory.PHONY: cleanclean: -rm $(PARSER) $(LEXER_C) $(PARSER_C) $(TOKEN_HEADER)
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -