The LOLCODE forum

Discussions in support of the LOLCODE.com wiki

You are not logged in.

Announcement

New registrations are disabled. Please see this announcement.

#1 2007-06-02 09:45:08

Arachnid
Member
Registered: 2007-06-02
Posts: 271

lolcode.net - Compiler for the .NET platform

I've posted information on my lolcode.net project on the wiki. And take a look at this:

[img]http://lolcode-dot-net.googlecode.com/svn/trunk/VSDebug1.png[/img]

and this:

[img]http://lolcode-dot-net.googlecode.com/svn/trunk/VSDebug2.png[/img]

Visual Studio debugging, complete with locals, breakpoints, stepping, watches, etcetera. No intellisense or syntax highlighting - yet. wink


lolcode.net - .NET LOLCode compiler.

Offline

 

#2 2007-06-02 09:46:37

etherealflaim
Member
Registered: 2007-06-01
Posts: 144

Re: lolcode.net - Compiler for the .NET platform

That is simply... simply... simply...


defying all attempts to verbalize what exactly it is.

Offline

 

#3 2007-06-02 11:12:29

atl
BDFL
From: lolcode.com
Registered: 2007-05-31
Posts: 324
Website

Re: lolcode.net - Compiler for the .NET platform

I'm speechless.

Offline

 

#4 2007-06-02 11:25:04

netcat
New member
Registered: 2007-06-02
Posts: 1

Re: lolcode.net - Compiler for the .NET platform

Really cool. smile Seems to crash when doing stuff with strings thought. I don't know if this is supposed to work, but it crashes on runtime:

Code:

    I HAS A STRING
    LOL STRING R "ok"
    I HAS A SECONDSTRING
    LOL SECONDSTRING R "ok"
    IZ STRING LIEK SECONDSTRING?
    YARLY
        VISIBLE "ok"
    NOWAI
        VISIBLE "..."
    KTHX

Offline

 

#5 2007-06-02 15:30:50

Church
Member
Registered: 2007-06-01
Posts: 151

Re: lolcode.net - Compiler for the .NET platform

Wow.

Just, Wow.

Offline

 

#6 2007-06-02 16:53:31

Sojournist
Member
From: United States
Registered: 2007-06-02
Posts: 14
Website

Re: lolcode.net - Compiler for the .NET platform

I have some questions about the implementation of the lolcode.net project:

Which language is used for the class file?  VB.NET, C#.NET, C++.NET?

Which Framework is being used?

Which Visual Studio version is being used?

-Sojournist

Offline

 

#7 2007-06-02 20:37:23

Arachnid
Member
Registered: 2007-06-02
Posts: 271

Re: lolcode.net - Compiler for the .NET platform

netcat: Ah, had totally forgotten about string comparisons. I'll fix that ASAP, thanks!

Sojournist: It's written in C#.NET, with Visual Studio 8 and .NET 2. All the source is accessible through the Google Code project linked from the wiki.


lolcode.net - .NET LOLCode compiler.

Offline

 

#8 2007-06-03 00:13:09

Arachnid
Member
Registered: 2007-06-02
Posts: 271

Re: lolcode.net - Compiler for the .NET platform

I've uploaded a new version (and committed changes to the repository) that supports string comparisons, as illustrated by netcat.


lolcode.net - .NET LOLCode compiler.

Offline

 

#9 2007-06-04 03:31:40

Arachnid
Member
Registered: 2007-06-02
Posts: 271

Re: lolcode.net - Compiler for the .NET platform

I've uploaded another new version. Changes in this version:
- Assorted optimisations to the generated IL
- Command line support for lolc added - still preliminary, some options will not have any
  effect. Note that builds default to release now, to make a debug build, you will have to
  specify /debug+.
- Fixed printing of arrays using VISIBLE so it adheres to the standard.
- Improved compiler error reporting substantially.
- Added README and CHANGELOG to the package.

Edit: Uploaded Revision 19, which fixes some bugs with the compiler's evaluation of conditionals.

Last edited by Arachnid (2007-06-04 05:36:36)


lolcode.net - .NET LOLCode compiler.

Offline

 

#10 2007-06-04 20:44:11

Ceridwyn
Member
Registered: 2007-06-04
Posts: 21

Re: lolcode.net - Compiler for the .NET platform

Hey Arachnid, thanks for writing this, I got it all working just peachy last nite!
(Hope you enjoyed ur scifi XD )

Offline

 

#11 2007-06-07 02:43:12

garry danger
New member
Registered: 2007-06-07
Posts: 1

Re: lolcode.net - Compiler for the .NET platform

I have just started looking at ways to incorporate the work that arachnid has done and apply it to the new dynamic runtime from microsoft. ill post screenshots in a day or two smile

Offline

 

#12 2007-06-08 17:31:06

wiccan-two
New member
Registered: 2007-06-08
Posts: 1

Re: lolcode.net - Compiler for the .NET platform

I see that you can debug in visual studios but how do you do it.

Is there anyway some sort of documentation could be made avalible.

Offline

 

#13 2007-06-09 03:22:34

Arachnid
Member
Registered: 2007-06-02
Posts: 271

Re: lolcode.net - Compiler for the .NET platform

garry danger: Fantastic! If you'd like to join the LOLCode.net project, just let me know.

wiccan-two: At the moment, to debug in VS, you have to:

- Make sure your program has a 'GIMMEH' line somewhere near the beginning so it'll pause
- Run your program
- Click on Debug -> Attach To Process in Visual Studio
- Select your program
- Click 'attach'.


lolcode.net - .NET LOLCode compiler.

Offline

 

#14 2007-06-09 05:43:09

Arachnid
Member
Registered: 2007-06-02
Posts: 271

Re: lolcode.net - Compiler for the .NET platform

I've uploaded a new version of LOLCode.net. Most notably, this version adds support for "IRCSPECZ", including "MEBBE" (else-if) and "WTF" (switch) statements. You can get it here. Other changes in this revision:
- Improved string parsing - LOLCode.net now accepts strings with any of the escape sequences
  accepted by C#
- Fixed a bug with lolc's handling of relative paths
- Assorted internal refactoring

Edit: Revision 30 had a couple of bugs - most notably, any file with warnings would not compile. I've uploaded revision 31, which fixes that.

Last edited by Arachnid (2007-06-09 21:09:25)


lolcode.net - .NET LOLCode compiler.

Offline

 

#15 2007-06-12 22:18:52

nrkn
New member
Registered: 2007-06-04
Posts: 7

Re: lolcode.net - Compiler for the .NET platform

Been playing with it Arachnid, very cool.  Any idea what it would take to get syntax highlighting going under VS?

Offline

 

#16 2007-06-12 23:00:36

Arachnid
Member
Registered: 2007-06-02
Posts: 271

Re: lolcode.net - Compiler for the .NET platform

nrkn wrote:

Been playing with it Arachnid, very cool.  Any idea what it would take to get syntax highlighting going under VS?

We'd need MSBuild support and a VS extension. I believe Grandmaster was going to work on that, not sure what the status is.


lolcode.net - .NET LOLCode compiler.

Offline

 

#17 2007-06-20 18:57:33

jaavaaguru
New member
From: Glasgow
Registered: 2007-06-20
Posts: 1
Website

Re: lolcode.net - Compiler for the .NET platform

This is excellent stuff. Just letting you know that it works perfectly under Mono 1.2.4 on Mac OS X as well :-)

I've written a short article about running this on Mono and have included a Makefile to allow it to compile on Linux or OS X at the command line.  http://www.sorn.net/?postid=88

Last edited by jaavaaguru (2007-06-20 20:11:03)

Offline

 

#18 2007-06-20 19:55:24

atl
BDFL
From: lolcode.com
Registered: 2007-05-31
Posts: 324
Website

Re: lolcode.net - Compiler for the .NET platform

I love news like this. You are all insane.

And I mean that in the most affectionate way.



Uh, not, like, inappropriately so.

Offline

 

#19 2007-06-23 07:29:19

Krisc
New member
Registered: 2007-06-23
Posts: 6

Re: lolcode.net - Compiler for the .NET platform

Been playing around with this for like 30 minutes now, lots of fun.

I see that you are taking input into a WORD. Perhaps you can add type casting via an "IS NOW A" operator, or add the NUMBR keyword and add input directly to that. Could do something like:

Code:

I HAS A MINIMUM
VISIBLE "Count from what? "!
GIMMEH WORD INPUT
MINIMUM R INPUT IS NOW A NUMBR

Also, possibly add support for referencing libraries, etc and setting the namespace.

Code:

CAN HAS System
CAN HAS System.IO

IM IN YR NAMESPACE LOLCodeTest
 BTW This is the main entry point.
 HAI
  VISIBLE "LOL!"
  I HAS A LOLCode TEST R NEW
 KTHXBYE

 IM IN YR CLASS LOLCode
  IM IN YR CONSTRUCTORZ
    VISIBLE "Testing!"
  IM OUTTA YR CONSTRUCTORZ
 IM OUTTA YR CLASS
IM OUTTA YR NAMESPACE

My goal would be to get it running with the XNA Framework and hopefully on the 360 at somepoint!

Offline

 

#20 2007-06-25 00:04:04

Arachnid
Member
Registered: 2007-06-02
Posts: 271

Re: lolcode.net - Compiler for the .NET platform

I'm trying to refrain from adding my own flourishes to the language, and stick to what's in the specs, for now. That means a fairly limited language in the short-term, but I'd like to see it able to integrate with the .NET framework in the near future. smile


lolcode.net - .NET LOLCode compiler.

Offline

 

#21 2007-06-25 05:34:57

Krisc
New member
Registered: 2007-06-23
Posts: 6

Re: lolcode.net - Compiler for the .NET platform

Yeah, I understand that. I was wondering how you are compiling it, or how I could go about compiling it at runtime? The reason is that I am working on an editor (which has LOLCode highlighting) and would like to write a plugin for it that can compile and run the LOLCode.

Here is the post about my editor: Click Me!

The goal is to get it to compile and work as a scripting language for my XNA engine, at least on Windows.

Offline

 

#22 2007-06-25 07:17:10

atl
BDFL
From: lolcode.com
Registered: 2007-05-31
Posts: 324
Website

Re: lolcode.net - Compiler for the .NET platform

Arachnid wrote:

I'm trying to refrain from adding my own flourishes to the language, and stick to what's in the specs, for now. That means a fairly limited language in the short-term, but I'd like to see it able to integrate with the .NET framework in the near future. smile

Arachnid, this sort of thing (integration with the host language/runtime) is very much in my sights for LOLCode as a whole in the medium-term. I want to be sure that discussions around that synch up with your availability, because we'll need your insights.

Offline

 

#23 2007-06-25 20:01:38

Arachnid
Member
Registered: 2007-06-02
Posts: 271

Re: lolcode.net - Compiler for the .NET platform

Krisc wrote:

Yeah, I understand that. I was wondering how you are compiling it, or how I could go about compiling it at runtime? The reason is that I am working on an editor (which has LOLCode highlighting) and would like to write a plugin for it that can compile and run the LOLCode.

Here is the post about my editor: Click Me!

The goal is to get it to compile and work as a scripting language for my XNA engine, at least on Windows.

Ah! Well, I've exposed it as a CodeProvider subclass, so you can reference the lolcode.net assembly and pass it files or strings to compile. If your needs are more complex, we could discuss exposing the parser and other parts of the compiler.

Arachnid, this sort of thing (integration with the host language/runtime) is very much in my sights for LOLCode as a whole in the medium-term. I want to be sure that discussions around that synch up with your availability, because we'll need your insights.

Definitely. Let me know when and I'll be there. smile


lolcode.net - .NET LOLCode compiler.

Offline

 

#24 2007-07-14 07:09:09

Arachnid
Member
Registered: 2007-06-02
Posts: 271

Re: lolcode.net - Compiler for the .NET platform

LOLCode.net is now 1.2 compliant with the following exceptions:
  - "SAEM" is used instead of "BOTH SAEM".
  - Labelled breaks are supported.
  - Continue (optionally labelled) with the keyword "MOAR" is also supported.

It's bound to have bugs, so please report them if you find them.

You can download it here.


lolcode.net - .NET LOLCode compiler.

Offline

 

#25 2008-04-03 22:06:38

Evandeson
New member
Registered: 2008-04-03
Posts: 1

Re: lolcode.net - Compiler for the .NET platform

How can i start "programming" in lol code please help.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson