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

ayazhafiz / hgb
96%
master: 95%

Build:
Build:
LAST BUILD BRANCH: i/test-dsl
DEFAULT BRANCH: master
Repo Added 29 Nov 2019 11:46PM UTC
Files 7
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

LAST BUILD ON BRANCH i/69-ts
branch: i/69-ts
CHANGE BRANCH
x
Reset
  • i/69-ts
  • 15
  • 15-ah-patch
  • RemoveChar
  • TestAdd
  • codegen.c
  • e/floating-point
  • e/github
  • e/pedantic
  • e/scripts
  • eval
  • extend-parer
  • final_expr
  • i/32
  • i/38-char-type
  • i/38-lex-char
  • i/38-parse-char
  • i/38-string-type
  • i/40
  • i/43
  • i/47
  • i/51-for
  • i/51-while
  • i/52
  • i/52-bool
  • i/71
  • i/87
  • i/fixup
  • i/grammar-types
  • i/hindent-incr
  • i/lex-symbol
  • i/scripts
  • i/test-dsl
  • i/ts-codegen-validate
  • i/ts-string-char-ref-asgn
  • lexer_change
  • lukas
  • master
  • nomorebits
  • numbertype
  • parse-arrays
  • patch-extend-parser
  • r/return
  • refactor-expectation
  • refactor/lexer
  • reorder
  • scripts
  • simplify_cond
  • static-typing
  • stopwastingtime
  • style
  • test/lexer
  • ts-more
  • ts/calls
  • ts/fn-decl
  • ts/types
  • typecheck
  • underscore

pending completion
497

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

Relevant lines Covered
Build:
Build:
478 RELEVANT LINES 461 COVERED LINES
0.96 HITS PER LINE
Source Files on i/69-ts
  • Tree
  • List 8
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
497 i/69-ts 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 gram... push 04 May 2020 08:48PM UTC ayazhafiz travis-ci-com pending completion  
493 i/69-ts 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 gram... push 04 May 2020 08:36PM UTC ayazhafiz travis-ci-com pending completion  
490 i/69-ts 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 gram... push 04 May 2020 08:30PM UTC ayazhafiz travis-ci-com pending completion  
485 i/69-ts 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 gram... push 04 May 2020 08:27PM UTC ayazhafiz travis-ci-com pending completion  
471 i/69-ts fixup! Add TypeScript codegen for variable declarations push 03 May 2020 05:38PM UTC ayazhafiz travis-ci-com pending completion  
469 i/69-ts fixup! Add TypeScript codegen for variable declarations push 03 May 2020 05:36PM UTC ayazhafiz travis-ci-com pending completion  
465 i/69-ts fixup! Add TypeScript codegen for variable declarations push 02 May 2020 01:08AM UTC ayazhafiz travis-ci-com pending completion  
461 i/69-ts fixup! Add TypeScript codegen for variable declarations push 01 May 2020 10:16PM UTC ayazhafiz travis-ci-com pending completion  
459 i/69-ts fixup! Add TypeScript codegen for variable declarations push 01 May 2020 10:15PM UTC ayazhafiz travis-ci-com pending completion  
457 i/69-ts 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 gram... push 01 May 2020 10:13PM UTC ayazhafiz travis-ci-com pending completion  
See All Builds (450)
  • Repo on GitHub
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

© 2025 Coveralls, Inc