Skip to content

FnControlOption/crystal-syntax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

syntax

compiler/crystal/syntax but as a standalone module

dependencies:
  syntax:
    github: FnControlOption/crystal-syntax
require "syntax"

p Syntax::Parser.parse("2 + 2").class_desc
# "Call"

p Syntax::Parser.parse("2 + 2").location
# :1:1

p Syntax::Parser.parse("2 + 2").end_location
# :1:5

About

Crystal language lexer and parser

Resources

License

Stars

Watchers

Forks