Formal systems laboratory

AutomataLab

Understand automata, grammars, and parsers—in one integrated lab

AutomataLab connects Machine Studio, Grammar Lab, and Parser Studio so you can simulate machines, analyze grammars, and step through parses with the same notation you use in class—not just static diagrams on a slide.

For students, educators, and anyone learning formal languages, automata theory, or parser construction.

Desktop builds run entirely offline. No accounts, cloud services, or telemetry.

q₀ ⊢ a · b*
Type 3 · Regular Type 2 · CFG Type 1 · CS Type 0

Download desktop app View on GitHub

Open Source Zero Telemetry Cross Platform Offline First 20+ Algorithms
11
Automaton types (desktop)
3
Workspaces
20+
Algorithms
100%
Offline

Desktop app or browser demo

Use the full Tauri application for all three workspaces, or try Machine Studio in the hosted simulator with a deliberately limited feature set.

Desktop application

Machine Studio, Grammar Lab, and Parser Studio with local project files and imports.

  • Automaton types: DFA, NFA, ε-NFA, Mealy, Moore, DPDA, NPDA, TM, MTM, LBA, NLBA
  • Grammar formats: regex and Chomsky Types 0–3 with format-gated analysis tabs
  • Parser algorithms: LL(1), LR(0), SLR(1), LALR(1), CLR(1), CYK, Earley, backtracking
  • Open/Save .autolab.json, JFLAP .jff, grammar/parser text files
  • Runs offline; no account or telemetry
Download for your platform

Hosted web demo

Machine Studio preview only—Grammar Lab and Parser Studio are not available in the browser build.

  • Machine types: DFA, NFA, ε-NFA, DPDA, NPDA, TM, LBA
  • Four bundled examples (e.g. even zeros, balanced parentheses, aⁿbⁿcⁿ TM)
  • No local file open/save, conversions, analysis tools, or export—simulation and canvas editing only
  • Same simulation engines as the full app for supported types
Launch browser demo

Three workspaces, one formal-language toolkit

Each workspace targets a different representation—machines, grammars, parsers—with transfers between them in the desktop app.

Machine Studio

Draw, run, and convert automata

Interactive canvas for finite automata, pushdown machines, transducers, and Turing models—with step, play, and batch testing.

Concepts: recognition, nondeterminism, stacks, tapes, computation trees (NFA, NPDA, NLBA).

  • Conversions such as ε-removal, subset construction, DFA minimization, regex→NFA, FA→regex, CFG→PDA, PDA→CFG, Mealy↔Moore.
  • Analyze reachability, dead states, and emptiness on finite automata (DFA/NFA/ε-NFA); export traces and computation trees from the desktop app.

Try: Build a DFA for even zeros, minimize it, then extract an equivalent regular expression.

Machine Studio workspace screenshot
Grammar Lab

Grammars with analysis that respects the Chomsky type

Edit regex or Types 0–3 grammars; tabs unlock only when the format supports them (CFG tools do not run on unrestricted grammars).

Concepts: FIRST/FOLLOW, nullable symbols, CNF/GNF, ambiguity (Type 2), bounded derivations for Types 0–1.

  • Properties, sampler, derivations, transformations, ambiguity, FIRST/FOLLOW, and problem diagnostics—gated per format.
  • Send grammar text to Parser Studio or build standard machine recognizers without retyping rules.

Try: Enter a small CFG, compute FIRST/FOLLOW, then convert to CNF for CYK in Parser Studio.

Grammar Lab workspace screenshot
Parser Studio

Parse tables, item-set graphs, and stepped parses

Build LL and LR families, CYK, Earley, or recursive-descent backtracking on the same grammar syntax as Grammar Lab.

Concepts: predictive parsing, canonical LR, conflicts, syntax trees, parse timelines.

  • LL(1), LR(0), SLR(1), LALR(1), CLR(1), CYK, Earley, and backtracking—with conflict reporting for table-driven methods.
  • Stack/buffer views, syntax trees, batch input runs; LR automaton graph (hidden above ~1500 states—tables and simulation still work).

Try: Import an expression grammar, inspect the LALR(1) table, and step through a parse with the timeline.

Parser Studio workspace screenshot

Worked example: regex → NFA (Thompson construction)

A static walkthrough of a conversion that exists in Machine Studio today. This is not a live simulation—follow the steps in the desktop app or read the machine guide.

Desktop app Regex → NFA is a Machine Studio construct. The browser demo does not replace the full conversion UI.

  1. 1. Input — regular expression

    Choose Regex → NFA (Thompson’s construction) and enter a pattern such as:

    (a+b)*abb

    Classic “strings ending in abb over {a,b}” language from automata courses.

  2. 2. Intermediate — ε-NFA fragments

    AutomataLab builds an ε-NFA (result type ENFA) by composing Thompson fragments for union, concatenation, and Kleene star—each fragment has a start and accept state linked by ε-transitions.

    You can inspect the combined graph on the canvas before running further conversions.

  3. 3. Output — simulate or refine

    Test strings like abb (accept) vs ab (reject) with step simulation. Optionally chain ε-NFA → NFA then NFA → DFA for a deterministic view.

    Machine Studio after building an automaton from a regex

    Machine Studio canvas—use this view after the regex construct completes (desktop).

One grammar can travel across workspaces

The desktop app links representations—machines, grammars, parsers—so you can follow a course-style pipeline or jump to a single conversion. Machine Studio also supports regex and FA workflows that never touch Grammar Lab.

Machine Studio

  • Regex → NFA
  • NFA → DFA
  • ε-removal
  • Minimize DFA
  • FA → Regex

Grammar → parser → machine

  • CFG → CNF / GNF
  • FIRST / FOLLOW
  • Open in Parser Studio
  • CFG → PDA

Typical cross-workspace path for a context-free grammar—the same notation is carried forward at each hand-off.

  1. Grammar Lab
    Grammar definition in Grammar Lab

    Define the grammar

    Enter productions or switch to regex format (Types 0–3). Tabs stay gated until the declared type supports them.

    Grammar Lab overview
  2. Grammar Lab
    FIRST and FOLLOW analysis

    Analyze before parsing

    Run FIRST/FOLLOW, nullable checks, and normal-form transforms on Type 2/3 grammars so Parser Studio starts from a clean spec.

    More Grammar Lab shots
  3. Parser Studio
    Parser tables in Parser Studio

    Build tables or simulate

    Open the same grammar in Parser Studio—LL/LR families, CYK, Earley, or backtracking—with conflict reporting where it applies.

    Parser Studio overview
  4. Machine Studio
    CFG to PDA conversion in Machine Studio

    Bridge to automata

    Run CFG → PDA (standard construction) on the canvas, then step or batch-test strings like any other machine.

    Machine Studio overview

Desktop screenshots above; the hosted demo is Machine Studio only. For a regex-first path, see Regex → NFA instead of this grammar pipeline.

Live Web Demo

Machine Studio preview in the browser — full Grammar Lab and Parser Studio require the desktop application.

DFA • NFA • ε-NFA • DPDA • NPDA • TM • LBA
AutomataLab Simulator Preview
Launch Interactive Demo
Launch Full Simulator

Simulator opens in a new tab.

Algorithms you can run in the app

Expand any item for what it does, a minimal example, and where to read more. All entries reflect behavior in the current codebase—not a future roadmap.

Automata & analysis

Subset construction (NFA → DFA)

Builds a DFA whose states are sets of NFA states—classic powerset construction.

Example: An NFA with two paths on input a becomes a DFA state {q0,q1}.

In AutomataLab: Machine Studio Convert dialog with step-by-step trace (desktop app only—the hosted demo does not include conversions).

Machine guide →
DFA minimization

Partition refinement (Hopcroft/Moore) to merge equivalent DFA states.

Example: Two distinguishable states on string ab stay separate; equivalent states merge.

In AutomataLab: Minimize DFA conversion on DFA input.

Machine guide →
ε-removal (ε-NFA → NFA)

Eliminates epsilon transitions while preserving the language.

Example: ε-closure adds reachable states before reading the next symbol.

In AutomataLab: ε-NFA → NFA conversion.

Machine guide →
Reachability & dead states

Finds states unreachable from the start and states that cannot reach acceptance.

Example: Prune unused branches before minimization or reporting.

In AutomataLab: Analyze panel in Machine Studio.

Machine guide →

Grammar analysis

FIRST & FOLLOW

Computes terminal lookahead sets for CFG parsing and table construction.

Example: For E → T E', FOLLOW sets drive LL(1) table rows.

In AutomataLab: Grammar Lab FIRST/FOLLOW tab (Type 2/3).

Grammar guide →
CNF & GNF transforms

Normal-form conversions used in CYK and some theoretical proofs.

Example: Binary productions with terminals on the right in CNF.

In AutomataLab: Transformations tab (Type 2/3).

Grammar guide →
Ambiguity search

Searches for a string with two distinct parse trees (context-free grammars only).

Example: Classic dangling-else style grammars.

In AutomataLab: Ambiguity tab (Type 2 only—not regex or Type 3).

Grammar guide →
Bounded derivations (Types 0–1)

Searches for derivations with explicit depth/length limits.

Example: RESOURCE_LIMIT means “not found in time”, not a proof of non-membership.

In AutomataLab: Derivations tab with limit messaging for unrestricted grammars.

Grammar guide →

Parsing

LL(1)

Top-down predictive parsing from an LL(1) parse table.

Example: Table-driven expansion on a small expression grammar.

In AutomataLab: Parser Studio with conflict reporting when the grammar is not LL(1).

Parser guide →
LR(0), SLR(1), LALR(1), CLR(1)

Bottom-up LR families with item sets, GOTO, and closure; conflicts surfaced in the UI.

Example: Shift/reduce conflict on a dangling-else grammar in SLR vs LALR.

In AutomataLab: Parse tables, optional LR automaton graph, stepped simulation.

Parser guide →
CYK & Earley

General CFG parsing—CYK needs CNF; Earley handles arbitrary CFGs in the implementation.

Example: Membership test on short strings with visible chart or table filling.

In AutomataLab: Parser Studio algorithm picker with syntax tree output.

Parser guide →
Recursive-descent backtracking

Educational backtracking parser for exploring nondeterministic parse choices.

In AutomataLab: Parser Studio backtracking mode with timeline stepping.

Parser guide →

Cross-representation conversions

Regex → NFA (Thompson)

Constructs an ε-NFA from a regular expression.

In AutomataLab: Machine Studio regex construction.

Machine guide →
FA → Regex (GNFA elimination)

State elimination to extract a regular expression from a finite automaton.

In AutomataLab: Extract conversion; result can open in Grammar Lab.

Machine guide →
CFG → PDA

Standard single-state NPDA construction from a context-free grammar.

In AutomataLab: Machine Studio construct from CFG text.

Machine guide →
PDA → CFG

Triplet construction with automatic PDA normalization.

In AutomataLab: Extract on DPDA/NPDA; embedded grammar text can round-trip to Grammar Lab.

Machine guide →

What each grammar format unlocks

Grammar Lab and Parser Studio gate tools by Chomsky type. This table matches the application’s format checks—not every theoretical possibility.

Feature availability by grammar format in AutomataLab
Format Parser Studio FIRST/FOLLOW CNF/GNF transforms Ambiguity search Derivations Typical machine targets
Regex Yes (adapted to Type 3) No No No No (use Sampler) DFA–TM family
Type 3 Yes Yes Yes No Yes DFA–TM family
Type 2 (CFG) Yes Yes Yes Yes Yes NPDA, NLBA, TM
Type 1 (CSG) No No No No Yes (bounded) NLBA, TM
Type 0 No No No No Yes (bounded) TM

Regex and Type 3 grammars can be sent to a wide range of machine targets; Type 2 adds NPDA; Types 1 and 0 use bounded recognizers on NLBA or TM in Machine Studio.

What are you trying to understand?

Pick a goal—each path maps to a workspace and a sensible first step in the desktop app or browser demo.

Trace strings on a finite automaton

See whether inputs are accepted and how state changes step by step.

Start in: Machine Studio — load the “even zeros” example in the browser demo or build your own DFA on desktop.

Try browser demo →

Convert NFA to DFA or minimize

Follow subset construction or partition refinement with intermediate steps.

Start in: Machine Studio → Convert (desktop app only).

Machine guide →

Compute FIRST/FOLLOW or CNF

Prepare a grammar for LL/LR tables or CYK.

Start in: Grammar Lab on a Type 2/3 grammar, then open Parser Studio.

Grammar guide →

Debug LR conflicts or build parse trees

Compare SLR, LALR, and CLR tables on the same grammar.

Start in: Parser Studio (desktop).

Parser guide →

Explore pushdown machines or Turing tapes

Watch stack and tape heads during simulation; inspect computation trees for nondeterminism.

Start in: Machine Studio — NPDA “balanced parentheses” or TM examples (demo includes selected types).

Launch demo →

Teach or present in a classroom

Step execution live; use in-app F1 User Manual and F2 Theory Handbook on desktop.

Start in: Desktop build for full workspaces; cite the project in academic materials.

Citation block →

Documentation

Install the desktop app, try the browser demo, or read the wiki for workspace-specific depth.

Quickstart (desktop)

  1. Install — Download the Windows, Linux, or macOS build from Get AutomataLab (or build from source per the Contributing Guide).
  2. Workspace hub — Launch the app and pick a workspace from the hub (or Open File). Return via File → Go to Workspace Hub.
  3. Load an example — Open a bundled example or import .autolab.json / JFLAP .jff in Machine Studio.
  4. Simulate — Step or play execution; use batch tests where available.
  5. Go deeper — Press F1 for the User Manual and F2 for the Theory Handbook inside the app.

Prefer the browser? Launch the Machine Studio demo — Grammar Lab and Parser Studio require the desktop app.

User Documentation

Getting Started

Installation, setup, and your first automaton.

Read Guide →

Machine Workspace Guide

Visual simulation, execution, and machine debugging workflows.

Read Guide →

Grammar Lab Guide

FIRST/FOLLOW analysis, conversions, ambiguity detection, and diagnostics.

Read Guide →

Parser Studio Guide

Generate parsers, parse tables, and inspect conflicts visually.

Read Guide →

Developer Documentation

Architecture Reference

Internal architecture, state management, and application design.

Read Architecture Docs →

File Format Specification

Project structure, serialization format, and compatibility guarantees.

Read Format Spec →

Contribution Guide

Development workflow, standards, and contribution process.

Read Contributing Guide →

GitHub Wiki

Community-maintained documentation, tutorials, examples, troubleshooting guides, and project knowledge base.

Read Wiki →

Academic Use

If you use AutomataLab in your research, teaching, or publications, please cite it as follows:

@software{sinha2026automatalab,
  author = {Sinha, Reeshav},
  title = {{AutoMataLab}: An Integrated Environment for Automata, Grammars and Parser Construction},
  year = {2026},
  url = {https://github.com/reeshavsinha/AutomataLab}
}

Get AutomataLab

Runs completely offline. No telemetry. No cloud services. No account required.

Windows

x64 setup

v5.1.1
Download .exe
SHA256 Checksum ▼
AutomataLab_5.1.1_x64-setup.exe
SHA256: (loads from GitHub Release after v5.1.1 is published)

Linux

Debian x64 .deb

v5.1.1
Download .deb
SHA256 Checksum ▼
AutomataLab_5.1.1_amd64.deb
SHA256: (loads from GitHub Release after v5.1.1 is published)

macOS

Apple Silicon & Intel

v5.1.1
Download .dmg
SHA256 Checksum ▼
AutomataLab_5.1.1_aarch64.dmg
SHA256: (loads from GitHub Release after v5.1.1 is published)

Ready to explore formal languages hands-on?

Download the full offline lab, or start with the hosted Machine Studio demo. Documentation and source code are always one click away.