Skip to content

A Simple Lexer and Parser written in Ocamllex and Menhir

Notifications You must be signed in to change notification settings

RISHIT7/OcamlBasedLexer-Parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

OCaml Lexer for Toy Language

Welcome to the OCaml Lexer repository! This project implements a lexer for a simple toy language using OCaml. The goal is to demonstrate how to build a lexer for a toy language and showcase the expressive power of OCaml.

Table of Contents

Features

  • Tokenization: The lexer tokenizes the source code of a simple toy language, identifying various types of tokens such as keywords, identifiers, numbers, operators, and punctuation.
  • Configurable: Customize the lexer's token rules or add support for additional tokens with ease.
  • Error Handling: Detects unrecognized tokens and unexpected inputs, providing helpful error messages.
  • Performance: Designed for efficiency, the lexer processes input code quickly and with minimal overhead.

About

A Simple Lexer and Parser written in Ocamllex and Menhir

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published