I'm in the process of trying some of the more basic Tachyon code in Tachyon and I think we're at the point where we will be needing more powerful debugging tools.
Marc, I remember you mentioning you had code for an ast pass that added print statements at the entry and exit of functions. Could you implement a parser flag to enable this in Tachyon? This will help me solve those annoying segfaults.
- Maxime
Afficher les réponses par date
On 2011-02-22, at 4:04 PM, chevalma@iro.umontreal.ca wrote:
I'm in the process of trying some of the more basic Tachyon code in Tachyon and I think we're at the point where we will be needing more powerful debugging tools.
Marc, I remember you mentioning you had code for an ast pass that added print statements at the entry and exit of functions. Could you implement a parser flag to enable this in Tachyon? This will help me solve those annoying segfaults.
The logic is already there. Just pass "true" as the second argument of ast_normalize (it turns on debugging). You'll have to adjust the call in parser/misc.js (I suggest you add a debug parameter to parse_src_file/str/port).
Marc