Skip to content
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

Closed
wants to merge 15 commits into from
Closed

[Truffle] Basics of yaml parsing #3345

wants to merge 15 commits into from

Conversation

chrisseaton
Copy link
Contributor

Don't merge - work in progress but looking for an initial review from any of @eregon, @pitr-ch or @nirvdrum please

@chrisseaton chrisseaton self-assigned this Sep 23, 2015
@chrisseaton chrisseaton added this to the truffle-dev milestone Sep 23, 2015
@@ -10,6 +10,7 @@

'jruby.basedir' => '${basedir}/..' )

jar 'org.yaml:snakeyaml:1.14'
Copy link
Contributor Author

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);
Copy link
Contributor Author

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) {
//
Copy link
Contributor Author

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

@eregon
Copy link
Member

eregon commented Sep 24, 2015

Looks good, where are the passing tests/specs?

@chrisseaton
Copy link
Contributor Author

This is enough to run the examples in the documentation. I'll get emitting working, then the full set of tests.

@enebo enebo added this to the Non-Release milestone Dec 7, 2017
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.

None yet

3 participants