Search:

Type: Posts; User: latte123

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thanks very much for that, john.c - that's really...

    Thanks very much for that, john.c - that's really useful and much appreciated!
    Update - it works! Numbers print correctly now - many thanks!

    Cheers - bye for now -
    Andy
  2. Hi Salem - thanks for your reply - Points 1...

    Hi Salem - thanks for your reply -

    Points 1 and 2 - understood. I'll work on those.
    Debuggers - I've hardly used them (which probably shows). At least in compiling, I always compile...
  3. File lexer works perfectly except for numbers

    Hi all -

    I'm sorry for dropping in again. (You'll be pleased to know I'm back to work tomorrow so I won't be here anywhere near as often..... :) )

    Anyway - my SQL file lexer now works...
  4. Replies
    5
    Views
    4,821

    Hi Sir Galahad - A very big thank-you for...

    Hi Sir Galahad -
    A very big thank-you for that code - it's very impressive! I'm sure it'll be very useful! That code has more of a "functional programming" flavour to it (and I'm a big fan of...
  5. Replies
    5
    Views
    4,821

    Thanks OldGuy2 - that article is great! Exactly...

    Thanks OldGuy2 - that article is great! Exactly what I was after!

    I apologise to all for popping in here so much in the last few days. Anyway, thanks to the help given here (and some...
  6. Replies
    5
    Views
    4,821

    Lexing - looking at the "big picture"

    Hi all -

    I'm trying to get a much better idea of the "big picture" of the lexing process.

    In particular, I have noticed that of the lexers I've seen (not that many...), most of the...
  7. Hi Hodor - thanks for that! Yes!!! It worked! ...

    Hi Hodor - thanks for that! Yes!!! It worked! Many thanks!

    It's a simple app but quite satisfying to get it working.
    Quite a nice example of mutually-recursive functions too..... :) ...
  8. Lexer works almost perfectly - one small problem

    Hi all -

    I've made huge progress with my lexer in the last day or so! The code is quite clean now and easy to follow now that I have functions for each lexeme type.

    One small problem - the...
  9. Replies
    8
    Views
    1,299

    Hey stahta01 - a HUGE thanks for posting the...

    Hey stahta01 - a HUGE thanks for posting the fixed code! *Big* improvement! I've just run it and it's great!

    Thanks again - cheers -
    - Andy
  10. Replies
    8
    Views
    1,299

    Hi again - Ahh..... I think I may be...

    Hi again -

    Ahh..... I think I may be seeing what you mean. The code outputs positions up to 13, then it jumps to 17, 19 and 21.
    If I think about it - we always want str[0] *anyway*...
  11. Replies
    8
    Views
    1,299

    Hi - thanks Hodor and stahta01 - very helpful! ...

    Hi - thanks Hodor and stahta01 - very helpful!

    As an aside (and an experiment), I've also been trying the alternative approach below (which looks very promising). It would certainly be easier...
  12. Replies
    8
    Views
    1,299

    Segfault with simple lexer

    Hi all -

    I'm trying to get this lexer to work but it gives a segfault at the moment. Here's the code -




    /* lex.c */
    /* This code is released to the public domain. */
    /* "Share and...
  13. Hi rstanley - Done - thanks for that! ...

    Hi rstanley -

    Done - thanks for that! Here's the code for anyone interested -





    /* search.c */
  14. Hi again all - I've got the code working...

    Hi again all -

    I've got the code working perfectly now. The search now returns an int - code follows -




    /* search.c */

    /* Function to search an array of strings */
  15. Ahhh...... thanks for that, rstanley! Should...

    Ahhh...... thanks for that, rstanley! Should be an easy fix..... :)
    Thanks again, bye for now -
    - Andy
  16. Search of string array isn't working correctly

    Hi all -

    I've written this code to search an array of strings for a given string. Here it is -





    /* search.c */
  17. Hi again all - Sorry to say - I'm still...

    Hi again all -

    Sorry to say - I'm still having problems with the SQL lexer.
    It compiles but when the executable is run, it doesn't do anything - it just hangs.

    The latest code is here -...
  18. Hi john.c - thanks for both of your tips there,...

    Hi john.c - thanks for both of your tips there, that's great!
    I'll fix the code accordingly and I should be up and running..... :)

    I'll do a parser next. That should be a bit easier...
  19. SQL lexer - almost there, just have a printf problem

    Hi all -

    I've been doing a "toy SQL lexer" and almost have it working. It compiles fine but I get this one warning -

    sql_lexer.c:281:2: warning: format ‘%s’ expects argument of type ‘char...
  20. Replies
    6
    Views
    1,684

    Hi Salem - thanks very much for that - looks...

    Hi Salem - thanks very much for that - looks great!
    Seems like a considerable improvement on my original code :)
    Bye for now -
    - latte123
  21. Replies
    6
    Views
    1,684

    SOLVED - (was key-sequence reader - small tweak needed)

    Problem solved -
    latte123
  22. Replies
    6
    Views
    1,684

    Hi again all - I've managed to get this...

    Hi again all -
    I've managed to get this working now (yay!) .
    The relevant bit of code is as follows -


    void test(struct keyseq *k)
    {
    puts("Press Ctrl-C to quit....");
    ...
  23. Replies
    6
    Views
    1,684

    Hi Salem - thanks for your help! I've now...

    Hi Salem - thanks for your help!
    I've now cut the code down to focus on the getch() function, only printing when it has finished.
    I'm not quite there yet, but will keep going.... :)
    ...
  24. Replies
    6
    Views
    1,684

    Key-sequence reader - small tweak needed

    Hi all -

    I'm doing a little public-domain key-sequence reader - by that, I mean code that reads keys (along with any shf/alt/ctrl/esc flags) from the keyboard.

    This is as part of a P.D....
  25. Replies
    5
    Views
    1,765

    Hi Barney! Thanks very much for that -...

    Hi Barney!

    Thanks very much for that - that's great!
    A very elegant way to do things!
    Thanks too to all others who have helped out here - your comments have been very helpful!
    -...
Results 1 to 25 of 34
Page 1 of 2 1 2