Jump to content
  • Advertisement
  • entries
  • comments
  • views

Language Genesis: Prelude

Sign in to follow this  


So, in this little loony project to make C# + a little I'm going to need to first parse and compile C#. Extensions can then be built off of that. Compilation is pretty easy since .NET provides access to the compiler pretty directly and CSC is readily available at worst. Parsing is a little more difficult. I've already got a C# lexer available, and can extend the infrastructure to do syntactic grammar.

That's already done in fact. Now is the slightly tedious process of taking the spec and making parser from BNF. Tedious, but easy at least. Plus it'll be easy to add/change things because of how the parser is built. And that's really the main goal; get to the point where I can play around with it.

[edit: closing up for the day. Parsing for Types and Expressions written. 8 pages of bnf translated, 16 to go.]
[edit: 12/20 - Statements and Namespaces done today. 12 pages done, 4 to go.]
Sign in to follow this  


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!