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

Assembler method definition format #38

Open
ForNeVeR opened this issue Dec 27, 2015 · 1 comment
Open

Assembler method definition format #38

ForNeVeR opened this issue Dec 27, 2015 · 1 comment

Comments

@ForNeVeR
Copy link
Member

We (I and @gsomix) have came to conclusion that it'll be better to use the following format for the method definitions in Naggum.Assembler:

 (.method (name arguments returnType ?metadata) &body)

So we could turn the metadata to an optional argument. @gsomix said that it reminds him Scheme procedure definition syntax.

@ForNeVeR
Copy link
Member Author

Maybe syntax for the call instruction should be also changed to mirror the definition syntax. Consider something like the following:

(call (mscorlib System.Console (WriteLine (System.Int32) System.Void)))

i.e. (call (<assembly> <type> (<method> <arguments> <returnType>))).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant