yesworkflow-org / yw-prototypes

Research prototype with tutorial. Start here to learn about and try YesWorkflow.
http://yesworkflow.org/wiki
Other
33 stars 13 forks source link

Simple parser for extracting YW comments from source code #5

Closed tmcphillips closed 9 years ago

sycao5 commented 9 years ago

Hi Tim,

Thank you for your updates in Github!

Regards,

Yang

On Dec 24, 2014, at 1:36 AM, Timothy McPhillips notifications@github.com wrote:

— Reply to this email directly or view it on GitHub https://github.com/yesworkflow-org/yw-prototypes/issues/5.

tmcphillips commented 9 years ago

No problem! I've tried to take care of the straightforward stuff in the prototype so that we can focus on the more interesting functionality and cases that require additional experimentation and research.

The (default) extractor currently does the following:

  1. Extract the YW comments from a script, trimming away the language-specific comment characters.
  2. Create a comment object (BeginComment, EndComment, InComment, or OutComment) for each YW comment line, with properties that capture the details extracted from them.
  3. Create a simple object-graph representation of the program based on the comment objects, with each object in the workflow model of the program (Workflow, Program, Port, and Channel) referring to the original comment objects which continue to serve as storage for the details gathered from the comment lines.
ludaesch commented 9 years ago

Hi everybody,

Just a short sign of life..

Over the holidays, I was mostly offline but had a bit fun with Python and hacked some small Python scripts that have similar functionality to the code that Tim checked in.

Is anybody else contributing code (or planing to)?

Bertram

On Sat, Dec 27, 2014 at 8:25 PM, Timothy McPhillips < notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:

No problem! I've tried to take care of the straightforward stuff in the prototype so that we can focus on the more interesting functionality and cases that require additional experimentation and research.

The (default) extractor currently does the following:

  1. Extract the YW comments from a script, trimming away the language-specific comment characters.
  2. Create a comment object (BeginComment, EndComment, InComment, or OutComment) for each YW comment line, with properties that capture the details extracted from them.
  3. Create a simple object-graph representation of the program based on the comment objects, with each object in the workflow model of the program (Workflow, Program, Port, and Channel) referring to the original comment objects which continue to serve as storage for the details gathered from the comment lines.

— Reply to this email directly or view it on GitHub https://github.com/yesworkflow-org/yw-prototypes/issues/5#issuecomment-68194996 .