-
-
Notifications
You must be signed in to change notification settings - Fork 925
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
[Truffle] Basics of yaml parsing #3345
Conversation
@@ -10,6 +10,7 @@ | |||
|
|||
'jruby.basedir' => '${basedir}/..' ) | |||
|
|||
jar 'org.yaml:snakeyaml:1.14' |
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.
Not sure if we should add a concrete dependency like this. JRuby seems to lazily add it to the class path or something, but not sure where it gets it from.
@@ -623,6 +635,13 @@ private void initializeConstants() { | |||
Layouts.MODULE.getFields(encodingConverterClass).setConstant(node, "XML_TEXT_DECORATOR", EConvFlags.XML_TEXT_DECORATOR); | |||
Layouts.MODULE.getFields(encodingConverterClass).setConstant(node, "XML_ATTR_CONTENT_DECORATOR", EConvFlags.XML_ATTR_CONTENT_DECORATOR); | |||
Layouts.MODULE.getFields(encodingConverterClass).setConstant(node, "XML_ATTR_QUOTE_DECORATOR", EConvFlags.XML_ATTR_QUOTE_DECORATOR); | |||
|
|||
Layouts.MODULE.getFields(objectClass).setConstant(node, "RUBY_REVISION", Constants.RUBY_REVISION); |
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.
Junk
@@ -1135,6 +1135,12 @@ public RubyNode visitDefsNode(org.jruby.ast.DefsNode node) { | |||
} | |||
|
|||
protected RubyNode translateMethodDefinition(SourceSection sourceSection, RubyNode classNode, String methodName, org.jruby.ast.Node parseTree, org.jruby.ast.ArgsNode argsNode, org.jruby.ast.Node bodyNode) { | |||
// |
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.
Should be
// Psych calls method names generated from class hierarchies. We have Truffle::Psych, so we need to adapt
Looks good, where are the passing tests/specs? |
This is enough to run the examples in the documentation. I'll get emitting working, then the full set of tests. |
Don't merge - work in progress but looking for an initial review from any of @eregon, @pitr-ch or @nirvdrum please