syntaxes

Implements the dispatcher for the different parsers.

Imports

llstream, ast, idents, lexer, options, msgs, parser, filters, filter_tmpl, renderer, lineinfos, pathutils

Procs

proc openParser(p: var Parser; fileIdx: FileIndex; inputstream: PLLStream;
                cache: IdentCache; config: ConfigRef) {...}{.
    raises: [IOError, Exception, ValueError, ERecoverableError, KeyError], tags: [
    ReadIOEffect, RootEffect, WriteIOEffect, ReadEnvEffect, ReadDirEffect].}
Source Edit
proc setupParser(p: var Parser; fileIdx: FileIndex; cache: IdentCache;
                 config: ConfigRef): bool {...}{.
    raises: [Exception, ValueError, IOError, ERecoverableError, KeyError], tags: [
    RootEffect, WriteIOEffect, ReadIOEffect, ReadEnvEffect, ReadDirEffect].}
Source Edit
proc parseFile(fileIdx: FileIndex; cache: IdentCache; config: ConfigRef): PNode {...}{.
    raises: [Exception, ValueError, IOError, ERecoverableError, KeyError], tags: [
    RootEffect, WriteIOEffect, ReadIOEffect, ReadEnvEffect, ReadDirEffect].}
Source Edit

Exports

Parser, parseAll, parseTopLevelStmt, closeParser

© 2006–2021 Andreas Rumpf
Licensed under the MIT License.
https://nim-lang.org/docs/compiler/syntaxes.html