Giter Club home page Giter Club logo

compilationprinciplesexperiment-1's Introduction

编译原理实验一:C++单词拼装器

实验要求:

  1. 把 C++源代码中的各类单词(记号)进行拼装分类。
  2. 要求应用程序应为 Windows 界面。
  3. 打开一个 C++源文件,列出所有可以拼装的单词(记号)。

💻程序

截图

image-20230926213222160

支持的处理的符号

常规符号:

类型 单词 类型 单词 类型 单词 类型 单词
算数运算符 + 关系运算符 < 位运算符 >> 赋值运算符 <<=
算数运算符 - 关系运算符 >= 赋值运算符 = 赋值运算符 >>=
算数运算符 * 关系运算符 <= 赋值运算符 += 赋值运算符 &=
算数运算符 / 逻辑运算符 ! 赋值运算符 -= 赋值运算符 ^=
算数运算符 % 逻辑运算符 || 赋值运算符 *= 赋值运算符 |=
算数运算符 ++ 逻辑运算符 && 赋值运算符 /= 杂项运算符 ?:
算数运算符 -- 位运算符 & 赋值运算符 -= 杂项运算符 ->
关系运算符 == 位运算符 ^ 赋值运算符 *= 杂项运算符 *(Pointer)
关系运算符 != 位运算符 ~ 赋值运算符 /= 杂项运算符 .
关系运算符 > 位运算符 << 赋值运算符 %= 杂项运算符 ,

分割符:

类型 单词 类型 单词 类型 单词 类型 单词
分隔符 { 分隔符 ( 分隔符 [ 分隔符 :
分隔符 } 分隔符 ) 分隔符 ] 分隔符 ;

字符串:

类型 单词
字符串标志 "

C++常用关键字:

asm auto bool break case catch class char
const const_cast continue default delete do double dynamic_case
else enum explicit export extern false float for
friend goto if inline int long mutable namespace
new operator private protected public register reinterpret_cast return
short signed sizeof static static_cast struct switch template
this throw true try typedef typeid typename union
unsigned using virtual void volatile wchar_t null nullptr
while cin cout include

🧭编译

环境要求

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

Visual Studio 2022

选择安装使用C++的桌面开发

image-20230926211152531

进入到Visual Studio 2022,在扩展>管理扩展>联机Extensions > Manage Extensions > Online)处搜索安装Qt Visual Studio Tools.

image-20230926211819218

重启Visual Studio 2022。

点击扩展>Qt VS Tools>Qt Versions,确保已勾选MSVC编译器。若无可手动添加MSVC编译器路径:\ ${Qt安装目录} \ {Qt版本号} \ msvc2019_64 \ bin \ qmake.exe

☁未来展望

  • QT界面美化
  • UnitTest

🔗其他链接

compilationprinciplesexperiment-1's People

Contributors

standardl avatar

Stargazers

 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.