Skip to contentSkip to content
Verified credentials. On-chain. Forever.Learn more
Ewance
Sign in
Cover image for Design a Lexer and Parser for a Customer Query Language
Design

Design a Lexer and Parser for a Customer Query Language

FreeVerified credential2 weeksIntermediate

Overview

What this challenge is about.

Write a lexer and parser design for a customer query language, handling all operators and error diagnostics, to earn your verifiable certificate.

The scenario

Northstar Signals is a 110-person business-to-business software-as-a-service vendor in Boston whose observability platform serves mid-market online retailers, and whose dashboard filtering depends on a 2019 query language now maintained by nobody.

CredentialBlockchain-anchored
ShareableLinkedIn-ready
LanguageEnglish
PaceSelf-paced

The Brief

What you'll do, and what you'll demonstrate.

Replace a brittle regex-based query parser with a cleanly designed lexer and recursive-descent parser that accepts the real customer query corpus and produces a typed Abstract Syntax Tree with useful error messages.

Earning criteria — what you'll demonstrate

  • Design a table-driven lexer that preserves source positions for every token.
  • Specify a recursive-descent parser whose grammar covers a real operator set and parenthesized expressions without ambiguity.
  • Define a typed Abstract Syntax Tree that matches an external contract a downstream evaluator already depends on.
  • Design error messages that localize failures to a line, column, and caret a customer can act on.
  • Justify a design against real corpus coverage and adversarial edge cases rather than assertion.

Program Fit

Where this fits in your program.

Sharpens the same skills your degree expects you to demonstrate.

Aligned coursework coming soon.

Careers

Career paths this challenge builds toward

Completing this challenge demonstrates skills that transfer directly to these roles:

Software Engineer (Language Tooling)

Building a lexer, recursive-descent parser, and typed tree against a real evaluator contract is the core of compiler and interpreter work, preparing you to own query languages, configuration languages, and template engines in production systems.

This challenge sharpens

  • lexing
  • recursive-descent-parsing
  • abstract-syntax-trees

Developer Experience Engineer

Designing caret-precise diagnostics and a clear grammar maps directly to building tooling, linters, and editor integrations where actionable error messages and well-specified syntax are the product, not an afterthought.

This challenge sharpens

  • error-reporting
  • grammar-design
  • unit-testing

Backend Platform Engineer

Replacing a brittle component that breaks on 4 percent of traffic with a tested, typed front end is platform reliability work, bridging you to roles that harden critical request paths for many internal and external consumers.

This challenge sharpens

  • abstract-syntax-trees
  • unit-testing
  • recursive-descent-parsing

One more thing

You can put a credential on your CV by Friday.