This project has moved and is read-only. For the latest updates, please go here.

RegisterPerators, RegisterPunctuation, RegisterBracePair

Feb 17, 2009 at 11:18 PM
What do these do? (I looked at source - but there were no comments)
Feb 17, 2009 at 11:26 PM
well, you just gotta look a bit deeper -)))
 for example, if methods sets some flag, look where this flag is used (Find All References).
RegisterOperators - registers symbols as operator and sets precedence/associativity; used when resolving conflicts in artihmetic expressions
RegsiterPunctuation - tells Irony to remove these symbols from output AST tree
RegisterBracePair - used in brace pair matching method, for validation of pair matches, and also for building brace pair lists for editor highlighting (not currently used in Grammar Explorer)
Feb 18, 2009 at 1:00 AM
I'm sorry, but I dont see it. What line number of what file is that? (I don't use
Feb 18, 2009 at 7:19 AM
Sorry I wasn't clear, these were just my explanations, you won't find them in code. All these methods are defined in Grammar.cs, have a look. Without VS - tough, you probably have to use some grep utility to find references to some flag or whatever is touched by method you're looking at. Good luck