Skip to content

Conversation

@bergie
Copy link
Member

@bergie bergie commented Nov 16, 2017

Handles # @name value style annotations (serialized to graph properties) when parsing or serializing graphs.

Follow-up to #87 to prevent merge conflicts with the generated lib file.

@bergie bergie requested a review from jonnor November 16, 2017 18:15
@flowbased flowbased deleted a comment from coveralls Nov 16, 2017
@flowbased flowbased deleted a comment from coveralls Nov 16, 2017
@flowbased flowbased deleted a comment from coveralls Nov 16, 2017
grammar/fbp.peg Outdated
/ _ "OUTPORT=" node:node "." port:portName ":" pub:portName _ LineTerminator? {return parser.registerOutports(node,port,pub)}
/ _ "DEFAULT_INPORT=" name:portName _ LineTerminator? { defaultInPort = name}
/ _ "DEFAULT_OUTPORT=" name:portName _ LineTerminator? { defaultOutPort = name}
/ annotation:annotation [\n\r\u2028\u2029] { return parser.registerAnnotation(annotation[0], annotation[1]); }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An aside, using a named rule newline for [\n\r\u2028\u2029] would improve our error messages a bit

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, let me tweak

chai.expect(graphData.exports).to.be.an 'undefined'
chai.expect(graphData.inports).to.be.an 'undefined'
chai.expect(graphData.outports).to.be.an 'undefined'
chai.expect(graphData.inports).to.eql {}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good

Copy link
Contributor

@jonnor jonnor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs rebasing on #87 when that goes in. Otherwise looks good

@bergie bergie mentioned this pull request Nov 17, 2017
@flowbased flowbased deleted a comment from coveralls Nov 17, 2017
@coveralls
Copy link

Coverage Status

Coverage increased (+1.1%) to 69.997% when pulling dbb4660 on annotations into adaada9 on master.

@flowbased flowbased deleted a comment from coveralls Nov 17, 2017
@bergie bergie merged commit eac460d into master Nov 17, 2017
@bergie bergie deleted the annotations branch November 17, 2017 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parse # @runtime foo Would like to have a title within the file

4 participants