Skip to content

Commit

Permalink
implements #?braces syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Araq committed Oct 15, 2016
1 parent 6ade7c0 commit 10bd488
Show file tree
Hide file tree
Showing 4 changed files with 2,207 additions and 15 deletions.
14 changes: 7 additions & 7 deletions compiler/parser.nim
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ import
llstream, lexer, idents, strutils, ast, astalgo, msgs

type
TParser*{.final.} = object # A TParser object represents a module that
# is being parsed
currInd: int # current indentation level
TParser*{.final.} = object # A TParser object represents a file that
# is being parsed
currInd: int # current indentation level
firstTok, strongSpaces: bool # Has the first token been read?
# Is strongSpaces on?
lex*: TLexer # The lexer that is used for parsing
tok*: TToken # The current token
inPragma: int # Pragma level
inSemiStmtList: int
lex*: TLexer # The lexer that is used for parsing
tok*: TToken # The current token
inPragma*: int # Pragma level
inSemiStmtList*: int

proc parseAll*(p: var TParser): PNode
proc closeParser*(p: var TParser)
Expand Down
Loading

0 comments on commit 10bd488

Please sign in to comment.