Giter Club home page Giter Club logo

compilationprinciplesexperiment-2's Introduction

编译原理课程实验2 - Xlex词法生成器

实验要求:

必做:

  1. 正则表达式应该支持单个字符,运算符号有: 连接、选择(|)、闭包(*)、括号()、可选(? )
  2. 要提供一个源程序编辑界面,让用户输入一行(一个)或多行(多个)正则表达式(可保存、打开正则表达式文件)
  3. 需要提供窗口以便用户可以查看转换得到的NFA(用状态转换表呈现即可)
  4. 需要提供窗口以便用户可以查看转换得到的DFA(用状态转换表呈现即可)
  5. 需要提供窗口以便用户可以查看转换得到的最小化DFA(用状态转换表呈现即可)
  6. 需要提供窗口以便用户可以查看转换得到的词法分析程序(该分析程序需要用C/C++语言描述)
  7. 用户界面应该是windows界面
  8. 应该书写完善的软件文档

选做:

  1. 扩充正则表达式的运算符号,如 [ ] 、 正闭包(+) 等。

💻程序

截图

image-20231028104916620

支持处理的正则表达式运算符

连接(^),选择(|),闭包(*),括号( () ),可选(?)

🧪测试数据

共使用6组测试数据,具体请参见Test instance文件夹.

🧭编译

环境要求

Qt 6.2.4

  • Qt Design Studio 4.2.0
  • Qt 6.2.4
    • MSVC 2019 64-bit
    • MinGW 11.2.0 64-bit
    • Qt 5 Compatibility Module
    • Qt Shader Tools
    • Additional Libraries
  • Developer and Designer Tools
    • Qt Creator 11.0.2
    • Qt Creator 11.0.2 CDB Debugger Support
    • Debugging Tools for Windows
    • MinGW 11.2.0 64-bit
    • Qt Installer Framwork 4.6
    • CMake 3.24.2
    • Ninja 1.10.2

☁未来展望

  • QT界面美化
  • UnitTest

🔗其他链接

compilationprinciplesexperiment-2's People

Contributors

standardl avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.