RE: about lr(1) parsers

2006-08-02 Thread chinlu chinawa
>Keywords, or hardwired names, are normally added >in the lexer, which may be generated by Flex. If >you want to have constructs such as 'define >...', one way to do it is to make a lookup >table, where is entered along with >syntactic and semantic data. When the lexer >finds a name, it check

Re: about lr(1) parsers

2006-07-03 Thread chinlu chinawa
>A LR(1) parser or parser generator? - The latter is >described in books like the one by Aho, et al. >"Compilers..." ("The Dragon Book"). You may also >want to consult the Usenet newsgroup comp.compilers, >and its FAQ published there monthly. Bison uses >LALR(1), and its manual gives examples of

about lr(1) parsers

2006-06-29 Thread chinlu chinawa
Hello, I learning assembly, with gnu gas, and am willing to implement a lr(1) parser. I've been looking for documents where a lr(1) language-independent implementation is shown, and I've actually found them in many books, but all the examples looks really complitated to me and doesn't allow me to