crystal-syntax

Crystal language lexer and parser

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
Repository

crystal-syntax

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 0
  • about 2 years ago
  • October 28, 2021
License

Apache License 2.0

Links
Synced at

Wed, 01 May 2024 02:19:46 GMT

Languages