Skip to content

timurnkey/lexer-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started

How it works

  1. Write the language grammar
  2. Generate the language parser
cargo run --features=gen
  1. Parse a human-readable expression into an Abstract Syntax Tree

Example

cargo run --example parse "<expression>"
cargo run --example parse "[0,1,2][0]"

Problem

How do we differentiate between these two:

  • a list with a single integer element: [0]
  • a list access operator: [1,2,3][0]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages