Results 1 to 3 of 3

Threaded View

  1. #1
    Join Date
    Jan 2014
    Lynnwood, WA

    Question ANTLR - When to use Parser Rules vs Lexer Rules?

    In trying to take the lessons from the videos and write my own parser for excel formulas, I'm suddenly realizing, I really don't understand when to use a lexer rule, and when to use a parser rule. Can someone explain when something stops being lexing and starts being parsing?

    In my mind there seems a spectrum, where things are clearly parse rules and clearly lex rules. But its the fuzzy line where lex rules are transitioning into parse rules that I feel like I don't get it. Whats to say i don't parse a level of complexity higher or lower than my chosen point.
    Last edited by sdiguana; 06-24-2015 at 07:53 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts