I am thinking of writing a mat lab compiler. Seems to be a good target for vectorisation. Does anyone have any experience with interfacing to the mat lab...
Paul Cockshott
wpc@...
Nov 10, 2004 12:51 pm
524
I finally converted some scans I made last year into a form that can be viewed on the web. This was a paper that had a lot of influence on me when I was ...
... Byte codes are all very well for object files, but as you've discovered are not so good for actually holding the program code in memory while running...
Rainer Thonnes
rainer@...
Dec 29, 2004 12:08 am
528
I finally sat down and hacked out how to do operator precedence properly using an AST, and a grammar which does not embody precedence in the grammar. It turns...
I explained the operator precedence algorithm a bit better on my Wiki: http://www.gtoal.com/software/OperatorPrecedence If anyone knows of any other references...
... "triple", i.e. an AST node. (it's just an int) ... the operator ('+', '*' etc) ... right branch of an AST node ... priority of an operator ... no. of...
I have a YACC grammar (complete with attributes) that I'd like to convert to recursive descent. The grammar is for a Pascal subset, so the language can be...
... No, it's quite reasonable. But first you have to refactor the grammar from left-recursive to right-recursive, eg EXPR :== <expr> <op> <term> ... becomes ...
I ran across an interesting language called Euphoria. It is a general-purpose imperative language. But what really distinguishes it is a datatype called a...
... It's a good idea. Of course it was also a good idea when it was first invented. Anyone remember POP2? LOGO? One of the few useful cross-overs from...
... It's clean, but there's nothing new or clever. It's a standard compiler implementation much like PL/0, Tiny Pascal, Pascal-S, etc. see also Programming...
This appears to be an interesting tool: PLC, or Programming Language Creator. Supposedly you can create your own programming language and run it in their...
What do you think about local functions (as in Pascal, Modula2, Oberon, Ada, etc.)? I can't decide whether I love them or hate them. For instance, I've seen...
... Pro. Back in the days when the only choices were Fortran or Algol, nested functions were the default expectation, and Fortran was seen as being deficient;...
... My very first Language was Fortran, in a college course in 1977. While I liked programming, I didn't much care for Fortran. My next language was Algol-W,...
I have developed a small language (compiler to p-code , p-code interpreter ) using Cocor compiler construction tool and c++. I am a novice in compiler...
... Passing on a note from one of our members who knows a lot more about this than me (mildly edited [in brackets] for context): } Nested procedures aren't...
I NOTICED THAT THE DIAGRAM CAME OUT BADLY IN THE LAST POST , HERE IT IS AGAIN. MEMORY CELL ARRAY _________ [|Memory |] [|Cell 1 |] [|_______|] [|Varname|] ...
Hi: I really need help here. The following code contains my Flex file which is already finished, my Bison file which I'm told is all wrong, and a copy of...
Hello, ... For starters, the syntax of your yacc file seems to be wrong. For instance, when you say open_decl ECL_OPEN ... it probably should look like ...
Dear Mauro: Yes it is. But of a different kind. I'm supposed to take xml code, parse it, use C, and finally input this data as sql. I said its homework,...
... and finally input this data as sql. I said its homework, but of a different kind, because its a project which will be counted on as a final. In other...
It is worth bearing in mind that Intel machines directly support displays with the ENTER and LEAVE instructions. These automate the setting up of the display....
Paul Cockshott
wpc@...
Apr 5, 2005 2:22 pm
550
... The page above is slightly updated, and I've used that algorithm in a real(ish) program: http://www.gtoal.com/athome/utils/xpp.c.html It's worth having a...
... Heh, it just shows that some things never go out of style. Thanks for the example. Rick Clark Discover Yahoo! Find restaurants, movies, travel and more fun...
I'm trying to figure out which is the best way to parse the following simple grammar, using a hand-written parser: stmtseq = {stmt} stmt = "if" expr "then"...