• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ayazhafiz / hgb / 501
95%

Build:
DEFAULT BRANCH: master
Ran 04 May 2020 08:59PM UTC
Jobs 1
Files 8
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
501

push

travis-ci-com

ayazhafiz
Add TypeScript codegen for variable declarations

This commit lays the groundwork for TypeScript code generation by adding
support for mapping a Gingerbread grammar to a TypeScript grammar for
variable declarations, and writing the TypeScript grammar out into a
string.

As described above, there are two steps for the current codegen process:

1. Map the Gingerbread grammar into another language grammar
  - this commit introduces a `MapGrammar a b` typeclass with a method
    `\> :: a -> b` that maps a `Grammar a` to a `Grammar b`
2. Write the mapped grammar out in the target language's syntax
  - this commit introduces a `Write a` typeclass with a method
    `write :: a -> String` that writes a `Grammar a` out as string.

To validate that the generated TypeScript program is syntatically
correct, we ask the TypeScript language service to parse the generated
code and report any syntatic errors. In the future (once
binding/typechecking is in place), we could verify that the generated
code has no semantic errors as well.

Part of #69

461 of 478 relevant lines covered (96.44%)

0.96 hits per line

Jobs
ID Job ID Ran Files Coverage
1 501.1 04 May 2020 08:59PM UTC 0
96.44
Travis Job 501.1
Source Files on build 501
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #501
  • 9ac67038 on github
  • Prev Build on master (#492)
  • Next Build on master (#506)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc