Module: Nasl

Defined in:
lib/nasl/token.rb,
lib/nasl.rb,
lib/nasl/cli.rb,
lib/nasl/test.rb,
lib/nasl/parser.rb,
lib/nasl/command.rb,
lib/nasl/context.rb,
lib/nasl/version.rb,
lib/nasl/parser/if.rb,
lib/nasl/parser/ip.rb,
lib/nasl/tokenizer.rb,
lib/nasl/parser/for.rb,
lib/nasl/grammar.tab.rb,
lib/nasl/parser/call.rb,
lib/nasl/parser/case.rb,
lib/nasl/parser/list.rb,
lib/nasl/parser/node.rb,
lib/nasl/parser/tree.rb,
lib/nasl/commands/xml.rb,
lib/nasl/parser/array.rb,
lib/nasl/parser/block.rb,
lib/nasl/parser/break.rb,
lib/nasl/parser/empty.rb,
lib/nasl/parser/local.rb,
lib/nasl/parser/while.rb,
lib/nasl/commands/test.rb,
lib/nasl/parser/export.rb,
lib/nasl/parser/global.rb,
lib/nasl/parser/import.rb,
lib/nasl/parser/lvalue.rb,
lib/nasl/parser/object.rb,
lib/nasl/parser/repeat.rb,
lib/nasl/parser/return.rb,
lib/nasl/parser/string.rb,
lib/nasl/parser/switch.rb,
lib/nasl/commands/parse.rb,
lib/nasl/parser/comment.rb,
lib/nasl/parser/foreach.rb,
lib/nasl/parser/include.rb,
lib/nasl/parser/integer.rb,
lib/nasl/parser/obj_var.rb,
lib/nasl/parser/argument.rb,
lib/nasl/parser/continue.rb,
lib/nasl/parser/do_while.rb,
lib/nasl/parser/function.rb,
lib/nasl/parser/assigment.rb,
lib/nasl/parser/decrement.rb,
lib/nasl/parser/increment.rb,
lib/nasl/parser/namespace.rb,
lib/nasl/parser/parameter.rb,
lib/nasl/parser/reference.rb,
lib/nasl/parser/undefined.rb,
lib/nasl/commands/tokenize.rb,
lib/nasl/parser/expression.rb,
lib/nasl/parser/identifier.rb,
lib/nasl/parser/repetition.rb,
lib/nasl/commands/benchmark.rb,
lib/nasl/parser/function_ref.rb,
lib/nasl/parser/key_value_pair.rb

Overview

Copyright © 2011-2014, Mak Kolybabi All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Defined Under Namespace

Modules: Test Classes: Argument, Array, Assignment, Block, Break, Call, Case, Cli, Command, CommandBenchmark, CommandParse, CommandTest, CommandTokenize, CommandXml, Comment, Context, Continue, Decrement, DoWhile, Empty, Export, Expression, For, Foreach, Function, FunctionReference, Global, Grammar, Identifier, If, Import, Include, Increment, Integer, Ip, KeyValuePair, List, Local, Lvalue, Namespace, Node, ObjVar, Object, Parameter, ParseException, Parser, Reference, Repeat, Repetition, Return, String, Switch, Token, TokenException, Tokenizer, Tree, Undefined, While

Constant Summary collapse

VERSION =
'0.6.0'

Class Method Summary collapse

Class Method Details

.libObject



35
36
37
# File 'lib/nasl.rb', line 35

def self.lib
  root + 'lib'
end

.rootObject



31
32
33
# File 'lib/nasl.rb', line 31

def self.root
  @root ||= Pathname.new(File.expand_path('../../', __FILE__))
end

.testObject



39
40
41
# File 'lib/nasl.rb', line 39

def self.test
  root + 'test'
end