class Pegasus::Language::LanguageDefinition

Overview

A language definition parsed from a grammar string.

Defined in:

pegasus/language_def.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(s : String) #

Creates a new language definition from the given string.


[View source]
def self.new(io : IO) #

Creates a new language definition from the given IO.


[View source]
def self.new #

Creates a new, empty language definition.


[View source]

Instance Method Detail

def rules : Hash(String, Array(Rule)) #

[View source]
def tokens : Hash(String, Token) #

[View source]