Skip to content

Rust-based lexer for the Oat programming language

Notifications You must be signed in to change notification settings

bmyjacks/lex4oat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lex4oat

lex4oat is a Rust-based lexer for the Oat programming language. It features two lexing approaches:

Features

  • Tokenizes Oat source files (e.g. a.oat)
  • Demonstrates lexer construction using state machines (NFA & DFA)
  • Provides both library-based and hand-made lexing techniques
  • Uses clap for command-line argument parsing and env_logger for logging

Getting Started

Build

cargo build

Run

cargo run -- -f a.oat

Docker

docker buildx build . -t lex4oat:1

docker run -it --rm lex4oat:1 test/[].oat

Testing & CI

The project includes a GitHub Actions workflow that builds and tests the project.

About

Rust-based lexer for the Oat programming language

Topics

Resources

Stars

Watchers

Forks