Example #1
0
  /*
   * [start] jetlFile
   *   : preamble toplevelObject[| import]* [eof]
   *   ;
   */
  void parseFile() {
    PsiBuilder.Marker fileMarker = mark();

    parsePreamble(true);

    parseToplevelDeclarations(false);

    fileMarker.done(JET_FILE);
  }
Example #2
0
  void parseScript() {
    PsiBuilder.Marker fileMarker = mark();

    parsePreamble(false);

    PsiBuilder.Marker scriptMarker = mark();
    parseImportDirectives();

    PsiBuilder.Marker blockMarker = mark();

    myExpressionParsing.parseStatements();

    blockMarker.done(BLOCK);
    scriptMarker.done(SCRIPT);
    fileMarker.done(JET_FILE);
  }