Parent

Class/Module Index [+]

Quicksearch

YARD::Parser::C::CParser

Public Class Methods

new(source, file = '(stdin)') click to toggle source
# File lib/yard/parser/c/c_parser.rb, line 5
def initialize(source, file = '(stdin)')
  @file = file
  @namespaces = {}
  @content = source
  @index = 0
  @line = 1
  @state = nil
  @newline = true
  @statements = []
  @last_comment = nil
  @last_statement = nil
end

Public Instance Methods

enumerator() click to toggle source
# File lib/yard/parser/c/c_parser.rb, line 23
def enumerator
  @statements
end
parse() click to toggle source
# File lib/yard/parser/c/c_parser.rb, line 18
def parse
  parse_toplevel
  enumerator
end
tokenize() click to toggle source
# File lib/yard/parser/c/c_parser.rb, line 27
def tokenize
  raise NotImplementedError, "no tokenization support for C/C++ files"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.