Skip to content
Abe Pralle edited this page Nov 24, 2021 · 20 revisions

Concepts

See Concepts for a short overview of compilers and how Froley fits in.

.froley Files

A .froley file is used to define token types and write the logic for the Scanner and Parser. Name it with the name of the language you're defining - for example, Simple.froley for a language called "Simple".

Comments

There are four types of comments in Froley:

# Single-line comment
#{ Multi-line comment }#
==== Single-line "HR" comment
---- Single-line "HR" comment

Sections

A .froley file is comprised of three sections:

  • [tokens](Token Type Definitions)
  • [scanner](Scanner Command Reference)
  • [parser](Parser Command Reference)

Clone this wiki locally