Skip to content

flex and bison语法学习,参考的《flex与bison中文版》

Notifications You must be signed in to change notification settings

JackTan25/flex_bison

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

    参考《flex与bison中文版》这本书的每一章的实现代码
    第一章:实现了一个简易的加减乘除的计算器,使用如下
    cd chpt1/src
    make
    ./calc
样例:
    输入: 1 + 2
    输出:  3

    输入: 1 + 2 * 3
    输出:  7

    输入: 1 + -2
    输出:  -1

    输入: (1 + 2) * 3 // 9
    输出:  9

    输入: (1 - 2) * 3 // -3
    输出:  -3

About

flex and bison语法学习,参考的《flex与bison中文版》

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages