Project

General

Profile

Feature #21659

Redesign the output from the Javascript generator.

Added by Richard Neswold 8 months ago. Updated 7 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Javascript Generator
Target version:
-
Start date:
01/11/2019
Due date:
% Done:

50%

Estimated time:
(Total: 0.00 h)
Duration:

Description

Now that we've gained experience with Javascript, there are a few changes we should make to the generator's output. Some ideas:

  • Use the class syntax for the request and reply messages rather than the older, function syntax.
  • The Javascript should use generators instead of the custom object.
  • In the Request class hierarchy, we should add a (static?) method that returns the function that unmarshals replies. This way, when the ACNET module marshals an outgoing message, it can deliver an unmarshalled reply.
  • The generator should emit Typescript code or, at the very least, Typescript declaration files. (done: 264e5fcc)

When tackling these features, please create a subtask that focuses only on it.


Subtasks

Feature #21660: Use class syntax for request, reply, and structs in Javascript generatorNew

Feature #22256: Use generators in Javascript output.ClosedRichard Neswold

History

#1 Updated by Richard Neswold 8 months ago

  • Due date set to 01/11/2019

due to changes in a related task: #21660

#2 Updated by Richard Neswold 6 months ago

  • Due date set to 04/01/2019

due to changes in a related task: #22256

#3 Updated by Richard Neswold 6 months ago

  • Tracker changed from Support to Feature

#4 Updated by Richard Neswold 6 months ago

  • Target version deleted (Protocol Compiler v1.2)
  • Assignee deleted (Richard Neswold)
  • Description updated (diff)

Remove "Target version" since this issue is a catch-all for subtasks that modify the Javascript generator and it might survive across releases of the protocol compiler.

#5 Updated by Richard Neswold 7 days ago

  • Description updated (diff)

Added: 264e5fcc

Added this 5 months ago, but forgot to update this issue.



Also available in: Atom PDF