Live data from Hacker News

Freeform - a meta language that allows defining and extending syntax inline.

freeformlang.sourceforge.net

1–10 of 12 posts

Re: Freeform - a meta language that allows defining and extending syntax inline.

#4
Alan Kay is leading a project that does something similar. There's an introduction here: http://www.vpri.org/html/work/ifnct.htm

The project's goal is to build an OS, GUI, programming environment, editor, and internet stack in under 20K lines of code. They've had some big wins. To implement TCP/IP, they built a grammar to directly read the block diagrams from the RFCs, and simply pasted them in.

The dynamic grammar system, called OMeta, is just one part of the project. See the "writings" section from the above link for papers, and "software" for running code. You can find more on OMeta itself here: http://tinlizzie.org/ometa/

Re: Freeform - a meta language that allows defining and extending syntax inline.

#5
post #2

That is really neat. I'd been fighting with writing a scanner/parser for the first time and finally gave up -- this might scratch the itch that prompted me to do so in the first place.

http://archive.gamedev.net/reference/programming/features/af...

Re: Freeform - a meta language that allows defining and extending syntax inline.

#6
post #2

That is really neat. I'd been fighting with writing a scanner/parser for the first time and finally gave up -- this might scratch the itch that prompted me to do so in the first place.

http://archive.gamedev.net/reference/programming/features/af...

Yeah, I got paste all that. It was the compilation stage that was the real brain bender.

Re: Freeform - a meta language that allows defining and extending syntax inline.

#8
post #4

Alan Kay is leading a project that does something similar. There's an introduction here: http://www.vpri.org/html/work/ifnct.htm The project's goal is to build an OS, GUI, programming environment, editor, and internet stack in under 20K lines of code. They've had some big wins. To implement TCP/IP, they built a grammar to directly read the block diagrams from the RFCs, and simply pasted them in. The dynamic grammar s…

Thank you for pointing out OMeta, that project looks amazingly useful. Especially since it's original implementation is in JavaScript. Which means I can (fingers crossed) easily drop it into a project I'm working on...

Re: Freeform - a meta language that allows defining and extending syntax inline.

#9

What does this have that Common Lisp doesn't?

Ease of use: to make syntax changes this radical in Common Lips you'd have to write your own reader which parses the new syntax. That's a pain so most people stick with what you can do with macros (and, sometimes, simple extensions to the reader).

Re: Freeform - a meta language that allows defining and extending syntax inline.

#10
post #6

Earlier quoted context omitted.

http://archive.gamedev.net/reference/programming/features/af...

Yeah, I got paste all that. It was the compilation stage that was the real brain bender.

Maybe you should start with a language in which compilation is simple, like Forth: http://www.complang.tuwien.ac.at/forth/gforth/Docs-html/
Post reply on HN