Search:

Type: Posts; User: trilobite2; Keyword(s):

Search: Search took 0.02 seconds.

  1. [SOLVED] Re: Getting a simple AST working in Python

    Hi spjackson - thanks for your reply!

    Ok - I'll check out that link and will go from there.
    Thanks again, bye for now -

    - t.
  2. [SOLVED] Getting a simple AST working in Python

    Hi all -

    For a very long time, I've had problems understanding abstract syntax trees and how to implement them for interpreters or compilers.
    I don't have a problem with lexing (creating...
  3. [SOLVED] Re: Keeping state while generating ID numbers

    Hi spjackson! Thanks very much for that - that'll do the trick nicely!

    Thanks again, bye for now :)
    - trilobite
  4. [SOLVED] Keeping state while generating ID numbers

    Hi all -

    I have a Python coding question. I want to generate consecutive "ID numbers" - this is for a "toy scheduler" that will schedule jobs to be run.

    Anyway, here's the code that I've...
  5. [SOLVED] Re: Converting a string to a date in bash using date utility

    Hi, The Cog - thanks for that!

    Ok - that shouldn't be a problem for me. I can just chop the date into three parts and reassemble it in the desired format.

    I'm happy - I'll mark this as...
  6. [SOLVED] Converting a string to a date in bash using date utility

    Hi all -

    I'm trying to convert a string to a date in bash using the date utility but it isn't working. Unfortunately, the string is in double-quotes and the date uses slashes as the separators....
  7. Re: Please help me complete the Linux desktop experience

    Hi allcoms -

    I can't help with this myself but I do have a suggestion - you may want to log this bug with the Caja team as well. Two bug reports should mean twice the chance of help.
    Just...
  8. [SOLVED] Re: Simple Python AST traverse - why doesn't it print?

    Hi spjackson!

    Great! Thanks very much for that! ( **Doh!** :) )

    I think I'll be having a lot of fun poking around with ASTs in the next few weeks..... :)

    Bye for now - thanks...
  9. [SOLVED] Simple Python AST traverse - why doesn't it print?

    Hi all -

    I have a very simple AST coded up in Python - here is the code -




    class node():

    def __init__(self, data, left, right):
  10. Replies
    0
    Views
    1

    [SOLVED] Help with Flex and Bison grammars

    Hi all -

    I'm trying to use Flex and Bison to put together a small programming language (I've called it miniFPL for "mini functional programming language").
    I'm trying to make the syntax...
  11. Re: Simple lexer - where to put the "loops"

    Hi steeldriver!

    Thanks for that! I'll have to check that out. I've heard a lot of good things about it so now's the time..... :)

    Thanks again - bye for now -
    - trilobite
  12. Re: Simple lexer - where to put the "loops"

    Hi r-senior!

    Thanks very much for your reply! ( Oh, and sorry for the time taken for me to reply ).

    That sounds good! I think you're spot-on there and I was looking at things the wrong...
  13. Simple lexer - where to put the "loops"

    Hi all -

    I've written most of a simple lexer in C but the part I have problems with is where to put the loops that iterate through a string (or through a file) and also the code that gets...
Results 1 to 13 of 13