Questions tagged [smacc]

Please, use the smacc tag for questions related to SmaCC (Smalltalk Compiler-Compiler), a freely available parser generator for Smalltalk, that generates LR parsers.

3 questions
3
votes
2 answers

How do i better understand how SmaCC uses the 'isMethod' functionality in regular expressions?

The 'isMethod' support in SmaCC regular expressions isn't clear to me. These two sources essentially say the same…
not-bob
  • 815
  • 1
  • 8
  • 23
3
votes
0 answers

How to add custom node to AST in Pharo SmaCC?

I am creating CST with universal custom nodes for Java language in SmaCC with Pharo. I found grammar (parser and scanner) and I tested it with few examples, creating Abstract Syntax Tree works perfect. But, I need to create Concrete Syntax Tree with…
0
votes
2 answers

How can I parse character in a File in Squeak4.1?

friend, suppose I have a file test.txt, the content of file is "1+2*3", if the fomular directly expressed in Squeak's Workspace, print it will result 9, What I want to get is 7 then I read the file content 1+2*3 from a file. code like this and it…
parsifal
  • 879
  • 4
  • 12
  • 21