Skip to content
Hadron67 edited this page Feb 22, 2018 · 2 revisions

Welcome to the tscc-compiler wiki!

tscc-compiler is an LALR(1) parser generator written in typescript, functions like a combination of flex and yacc, with some more useful features.

It uses Hanolee algorithm to generate the parse table, so that it can handle all the LR(1) grammars, including those cannot be handled by ordinary LALR(1) parsers, while the parse table is almost the same size as an LALR(1) parser does. It was designed to support more output languages. At present, it can generate parsers written in javascript and typescript.

Notations

Throughout this wiki the following notations are used to specify various syntax:

  • [...] is used to specify a part of the syntax, so that it can be explained in the documentation.
  • (...)* means '...' can repeat an arbitary number of times.
  • (...)? means '...' is optional.
  • \?, \* are literals '?', '*', respectively.
  • Other characters should be treated literally.

Guide

Grammar file specification

Clone this wiki locally