+
Skip to content

MrPancakes39/bool-expr-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Boolean Expression Interpreter

This repository contains a simple boolean expression interpreter written in Rust.

It is a solution to this LeetCode problem.

But really, it is just an excuse for me to learn about lexers, parsers, ASTs, and how interpreters work.

BNF for Boolean Expressions

<boolean_constant> ::= "t" | "f"
<not_expression>   ::= "!" "(" <expression> ")"
<and_expression>   ::= "&" "(" <expression> {"," <expression> }* ")"
<or_expression>    ::= "|" "(" <expression> {"," <expression> }* ")"
<expression>       ::= <boolean_constant> | <not_expression> | <and_expression> | <or_expression>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载