I'm the author of a natural language programming system called EngScript.

Some of my favorite software projects are:

I have written some useful macros in sweet.js:

//for repeating if statements
macro ifs{
    rule{
        {$($x {$y...}) ...}
    } => {

        $(if($x){
            $y...
        }) ...
    }
}

//a concise way to define several different functions
macro manyFuncs{
    rule{{$($x ($y...) {$z...}) ...}
    } => {
        $(function $x($y...){
            $z...
        }) ...
    }
}

ifs {
    a{
        b
    }
    c{
        d
    }
}

manyFuncs{
    fullName(firstName, lastName) {
        return firstName + lastName;
    }
    squared(a){
        return a*a;
    }
}

Right now, I'm searching for a parser that can handle ambiguous grammars.

In theory, it would also be possible to create a very concise programming language with implicitly defined parameters:

isDivisibleBy: (foo % bar) == 0
//This is a function with 2 parameters: foo and bar.

isEven: isDivisibleBy(foo, 2)

isOdd: !isEven(param1)

firstCharacter: theString[0]

lastCharacter: theString[theString.length - 1]

firstNCharacters: theString[0:end]

firstCharacterIsLastCharacter: firstCharacter(stringParameter) == lastCharacter(stringParameter)

printEach: for current in anArray{ print current }

http://rosettacode.org/ is one of the most comprehensive programming language references I've ever found.

Optionally-typed programming languages are really awesome: they combine the type safety of languages like Java with the conciseness of languages like Python.

Some cool things that I've made:

Someday, I hope it will be possible to create a programming language that mixes code from different languages into a single file, like this:

Python {
    def foo():
        return "foo"
}
Ruby {
    def bar
        return foo + " was called from Python."
    end
}
2d
awarded Popular Question
Mar
25
comment Get stack size in Forth
This link points to a different website now. Is an up-to-date link available?
Mar
25
awarded Popular Question
Mar
21
awarded Notable Question
Mar
20
comment Is there a Marpa port for Node.js or other Earley parser with full abstract syntax forest support?
Marpa is a C library, so it might be possible to compile Marpa into JavaScript using Emscripten. JavaScript Moony Parser can parse strings using ambiguous grammars, but I do not know whether it can generate a full parse forest.
Mar
20
comment Complexity class of a function
Some important information is missing from this question. Can you post the function's source code here?
Mar
18
awarded Popular Question
Mar
17
revised Is it possible to do string interpolation in JavaScript?
Making the title less subjective
Mar
16
comment JavaScript library for logic programming
See this related discussion about JavaScript implementations of Prolog: stackoverflow.com/questions/15435462/…
Mar
11
comment How to find a string that starts with a certain pattern in python?
possible duplicate of Checking whether a string starts with XXXX
Mar
10
comment Does Prolog have an "if and only if" operator?
That link appears to be broken now. Is a replacement available?
Mar
3
revised Why has my cat started urinating outside of her litter box?
adding a tag
Mar
2
awarded Organizer
Mar
2
revised Why does my dog urinate when I call her?
adding a tag
Mar
2
revised Why is my MIL's chihuahua peeing on our bed?
adding a tag
Mar
2
revised Indoor Cat Sneaking Outside, Urinating on Deck BBQ Cover
adding a tag
Mar
2
awarded Autobiographer
Mar
2
awarded Supporter
Feb
28
comment Making a simple GPA calculator using javascript
Stack Overflow has many other questions that are very similar to this one.
Feb
27
comment Is there a programming language with semantics close to English?
Google Search uses a natural language user interface, but it isn't a natural language programming system.
1 2 3 4 5