Commit Graph

49 Commits (23935864935693e2c591bf7ead41bc359352ae6d)

Author SHA1 Message Date
Tibor Bizjak d40f20afb7 complete rewrite. the previous implementetion was incorrect, not all occurences
of pattern were found (eg. xy in xxy).
2023-07-25 16:55:19 +02:00
Tibor Bizjak 09fb685153 fixed implementation error; not all matches were found (e.g. xy in xxy)
there is no optimization, the book version is used thus the rename
2023-07-23 23:25:29 +02:00
Tibor Bizjak 8ebefb2974 changed find loop 2023-07-23 14:04:29 +02:00
Tibor Bizjak bd26ae43a5 renamed files 2023-07-23 12:24:13 +02:00
Tibor Bizjak 291e9e87ec changed k&r naming scheme, renamed files 2023-07-23 12:22:28 +02:00
Tibor Bizjak 3fd2a66b17 rewrote part of program for lower complexity 2023-07-23 12:13:43 +02:00
Tibor Bizjak 11e44def75 implemented optional argument flags 2023-07-22 16:09:12 +02:00
Tibor Bizjak 3c529c1b9b added optional argument flag parsing 2023-07-22 15:07:45 +02:00
Tibor Bizjak ff3df46f36 refractored 04-find.c to seperate compilation units 2023-07-22 14:17:28 +02:00
Tibor Bizjak 70a6cd85ab renamed grep to find, starting refractoring 2023-07-20 15:50:52 +02:00
Tibor Bizjak 2b9c7e9bcb date converter excercise 2023-07-20 15:31:38 +02:00
Tibor Bizjak 44774f3582 moved #includes 2023-07-19 11:21:16 +02:00
Tibor Bizjak 4efe1541d0 Removed unnecessary variable from readlines, fixed bug where
EOF terminated line was skipped
2023-07-19 11:17:23 +02:00
Tibor Bizjak a481bec3ba rewrote readlines 2023-07-18 23:48:37 +02:00
Tibor Bizjak 9df28e0ec9 k&r section 5.6 excercise solution 2023-07-18 22:22:18 +02:00
Tibor Bizjak ee59768555 k&r section 5.5 excercise solutions 2023-07-18 16:43:22 +02:00
Tibor Bizjak e6de3d1193 fixed parsef, exponent can now follow integer part 2023-07-17 12:44:19 +02:00
Tibor Bizjak bcff42f74d moved error handling to appropriate header files 2023-07-16 13:31:57 +02:00
Tibor Bizjak b127575211 forgot to remove T arg from UNARY_T_FUN macro 2023-07-16 13:26:38 +02:00
Tibor Bizjak a408616dcf finished chapter 04 2023-07-14 13:31:34 +02:00
Tibor Bizjak 849a032150 moved grep implementations to their own folder 2023-07-14 13:00:03 +02:00
Tibor Bizjak 545a3e4102 Moved calculator files to their own folder 2023-07-14 12:58:47 +02:00
Tibor Bizjak f11eef6a7a solutions to excercises 2023-07-14 12:56:19 +02:00
Tibor Bizjak d8252a8967 removed static declarations 2023-07-10 20:33:26 +02:00
Tibor Bizjak 5723e1d29b fixed printerr formatting 2023-07-10 17:58:08 +02:00
Tibor Bizjak 1bdbe712fd removed stdlib include 2023-07-10 17:53:46 +02:00
Tibor Bizjak cf145e880b moved stack to 04-glob-stack.h
moved token definitons to 04-token.h
2023-07-10 17:48:07 +02:00
Tibor Bizjak 66433dd34d removed unecessary type argument in calc function macros 2023-07-09 22:21:49 +02:00
Tibor Bizjak 13cc6ee019 fixed -Wall warnings 2023-07-09 20:08:50 +02:00
Tibor Bizjak 115b8f8132 added print variables command 2023-07-09 19:30:05 +02:00
Tibor Bizjak 28480c4876 small changes 2023-07-09 19:23:11 +02:00
Tibor Bizjak 9aa5c11369 k&r 04-06: added variable support 2023-07-09 18:33:07 +02:00
Tibor Bizjak c1b83c5cd4 added help command 2023-07-09 16:19:24 +02:00
Tibor Bizjak abbbec2116 refactored main, added custom atof 2023-07-09 14:59:27 +02:00
Tibor Bizjak 919eb0c413 redefined stack manipulation functions as macros 2023-07-09 14:28:55 +02:00
Tibor Bizjak 1f31d9e372 k&r 04-05: added math.h bindings 2023-07-09 14:06:16 +02:00
Tibor Bizjak b655221b5b k&r 04-04: added stack manipulation commands 2023-07-08 17:46:02 +02:00
Tibor Bizjak 4d95f4515b k&r 04-03: rewrote calculator, added modulo and negative numbers 2023-07-08 16:37:54 +02:00
Tibor Bizjak c8cdc37824 solutions to 04-01 and 04-02 2023-07-04 10:28:05 +02:00
Tibor Bizjak 824f409213 increased buffer size 2023-06-25 18:47:18 +02:00
Tibor Bizjak 163235bf0c further optimizations 2023-06-25 15:39:03 +02:00
Tibor Bizjak e7eacc893f Optimizing grep exapmle 2023-06-25 14:30:48 +02:00
Tibor Bizjak b81504f2ee Fixed goto indentation 2023-06-23 20:36:56 +02:00
Tibor Bizjak 2d2e6880a2 k&r : excercise solutions to chapter 3 2023-06-23 16:59:45 +02:00
Tibor Bizjak abccef71d3 k&r : finished chapter 2 2023-06-22 14:23:47 +02:00
Tibor Bizjak e001baa96f k&r : solutions to bitwise excersises 2023-06-22 13:56:04 +02:00
Tibor Bizjak 4a0efd617c Progress on k&r syntax checker 2023-06-02 13:28:54 +02:00
Tibor Bizjak 5304a59ba7 Some solutions to k&r chapter 2 2023-06-02 13:28:54 +02:00
Tibor Bizjak 9890fece0f Inital commit. Solutions to k&r chapter one 2023-06-02 13:28:37 +02:00