2025-12-17 15:28:41 Hello o/ 2025-12-17 15:38:01 https://programming.dev/post/42507593 2025-12-17 15:38:11 failed attempt to create a forth compiler in c# 2025-12-17 15:38:13 :( 2025-12-17 16:01:13 ghodawalaaman_: ``A failure to plan is a plan for failure. '' 2025-12-17 16:01:32 Where is your problem statement? 2025-12-17 16:02:31 Not even you know what should be done. 2025-12-17 16:03:03 DKordic: the problem is that I don't know how to parse it properly, I have done it so far but don't know if it's enough 2025-12-17 16:04:29 Look up ""parse"" in (English) dictionary. I guess it is not your mother's tongue. Perhaps even better, a formalism... of a _formal langauge_!? 2025-12-17 16:05:09 yeah English is not my mother tongue 2025-12-17 16:06:24 ACTION .oO(Have anybody ever said C is a formal language? Liek PC is a computer... Android even less so. Cantor's Theorem... ) 2025-12-17 16:07:23 okay I will try to explain where I am stuck. I parsed(tokenized/lexical analysis) almost everything but don't know to tokenize loops 2025-12-17 16:07:41 and other than that there is not syntax error checking in my code 2025-12-17 16:10:40 That is why Forth is interesting. At least IMO. I don't give a sh.it about ""Operating System"" (UNIX), ""parsing"", ""compiler"", ""linker"", ""type""(( system )s). 2025-12-17 16:11:03 It can be any programming language as lng as it's C!? 2025-12-17 16:11:32 ghodawalaaman_: So, WTF is ""parsing""? 2025-12-17 16:11:42 tokenizing? 2025-12-17 16:11:52 lexical anlysis? 2025-12-17 16:16:32 The world is not as simple as you (and your masters) can possibly decree. 2025-12-17 16:56:51 forth parsing is mostly just separating on whitespace. (excluding things like s" or : which parse ahead in the input stream) 2025-12-17 18:21:56 what about numbers? 2025-12-17 18:22:48 (or strings) 2025-12-17 18:25:31 strings are built up using words like s" which parse ahead in the input stream, numbers typically get checked if the input token isn't a word in the dictionary 2025-12-17 18:27:16 http://lars.nocrew.org/dpans/dpans3.htm#3.4 2025-12-17 18:28:39 things like definitions, loops, and conditionals are also implemented by words, not a predefined set of structures 2025-12-17 19:06:53 AFAICU ""Form and Content in Computer Science"" (https://web.media.mit.edu/~minsky/papers/TuringLecture/TuringLecture.html) is relevant. 2025-12-17 19:13:35 The essence of SyntaxError is inappropriate application of relevant Constructors. 2025-12-17 19:15:20 I got SyntaxErro in both Haskell and Python for reasonable expressions. That is why I don't care much about them. 2025-12-17 19:17:34 Effort put into ""C Type System"" is like M$ Word. A one-way street. 2025-12-17 21:01:40 This isn't Forth, but I can't resist sharing, because it's pretty much the first time I've EVER seen anyone get the material covered as RIGHT as he gets it. So many sacred cows slain... 2025-12-17 21:01:46 https://www.youtube.com/watch?v=XcY3ZtgYis0