-
Notifications
You must be signed in to change notification settings - Fork 19
Annotations support #88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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]); } |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good
jonnor
left a comment
There was a problem hiding this 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
Handles
# @name valuestyle annotations (serialized to graph properties) when parsing or serializing graphs.# @runtimefoo #33: Parse# @runtimefooFollow-up to #87 to prevent merge conflicts with the generated lib file.