Skip to content

Building a TypeScript Syntax Tree with source from another language (F#) #1514

@alfonsogarciacaro

Description

@alfonsogarciacaro

Hi there! Since TypeScript is getting more and more wonderful features like tuples or union types, I wonder if it makes sense to retarget a project like FunScript (F# to JS compiler) to TypeScript and leverage all its power. @ctaggart suggested we could use the improved compiler services to create an AST directly instead of generating TS code.

From the repository I can see there's still some work to be done with the compiler services. But if you have time, I'd like to make a couple of questions to know what to expect of the upcoming version.

  • Do you plan to provide some documentation/tutorials for the compiler services? If not possible, will the compiler API be close enough to Roslyn to use this knowledge when working with it?
  • Do you think it will be feasible to build a TypeScript AST directly with the info from another language (F# in this case, with many similarities)? Or will it be better to generate the TypeScript code directly?

Thanks a lot in advance!

Metadata

Metadata

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions