Skip to content

Ashlzw/TextQueryProgram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TextQueryProgram

在给定的文件中查询单词

查询语法

word = [a_zA_z]

Term = word | "(" Expr ")"

Factor1 = Term | ~Term

Factor2 = Factor1 | Factor1 "&" Factor2 = Factor1 (ws "&" ws Factor2)*

Factor2 = Factor1 | Factor2 & Factor1 = Factor1 (ws "&" ws Factor1)*

Expr = Factor2 (ws "|" ws Expr)*

Expr = Factor2 | Expr "|" Factor2 = Factor2 (ws "|" ws Factor2)*

使用方法

将所有源文件包含在一个文件夹中,然后#include "Expression.h",即可使用程序相应的数据结构与接口。

以上传的Main.cpp,在Visual Studio Community演示效果: 演示效果

About

在给定的文件中查询单词

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages