Anonymous user
ASCII art diagram converter: Difference between revisions
m
Corrected several typos.
m (Fixed typo.) |
m (Corrected several typos.) |
||
Line 941:
proc getNextToken(lexer: var Lexer) =
## Search next
doAssert(lexer.pos < lexer.line.high)
Line 991:
proc parseSepLine(lexer: var Lexer): int =
## Parse a separation line.
lexer.getNextToken()
Line 1,271:
iterator fieldPairs*(struct: Structure): tuple[key: string, val: uint64] =
## Yield
for name in struct.names:
Line 1,279:
proc `$`*(struct: Structure): string =
##
result = "("
Line 1,290:
proc toHex(struct: Structure): string =
## Return the hexadecimal representation of
case struct.unit
Line 1,316:
createStructType(Diagram, "Header")
# Declare a variable of type Header and initialize its fields.
var header1 = Header(ID: 30791, QR: 0, Opcode: 15, AA: 0, TC: 1, RD: 1, RA: 1, Z: 3, RCODE:15,
QDCOUNT: 21654, ANCOUNT: 57646, NSCOUNT: 7153, ARCOUNT: 27044)
|