Skip to content

Instantly share code, notes, and snippets.

View vic's full-sized avatar
🤮
puke nuke

Victor Borja vic

🤮
puke nuke
View GitHub Profile
dasdsadjslkdjaskjdas
"hello" {
"foo: 22
}
@vic
vic / sss
Created August 12, 2010 08:31
skjs
@vic
vic / bar
Created August 13, 2010 04:51
BAAR
chido
# I'd like to have fancy to recognize when I'm openning a class (by a convention:
# All identifiers starting with an upper case are constants and hence, the following
# is equivalent to
# def class Rubinius
#
def Rubinius {
# A nested class
def Compiler {
# In rubinius you can obtain the block given to a method
# without having to rely on &block syntax
#
# This is how they implement yield, by obtaining the block given to the method.
def some_method_that_takes_a_block
given_block = Rubinius.asm do |generator|
generator.push_block # pushed the current block into the stack
end
vic@jwm:/vic/hk/fancy-lang$ ./bin/fancy rbx/examples/exception.fy
Hola
Hello
Adios
vic@jwm:/vic/hk/fancy-lang$ ./bin/fancy rbx/examples/finally.fy
Hello
World
vic@jwm:/vic/hk/fancy-lang$ ./bin/fancy rbx/examples/nested_try.fy
Propagated exception
vic@jwm:/vic/hk/fancy-lang$ ./bin/fancy rbx/examples/rerise.fy
[wlwBuild] [Build] BUILD STARTED
[wlwBuild] [Build] build:
[wlwBuild] [Build] clean:
[wlwBuild] [Build] Compiling webapp source files...
[wlwBuild] [Build] Warnings found in portalPosadas/AccountManag/AccountManagController.jpf:
[wlwBuild] [Build] Warning at line 3086 column 59:
[wlwBuild] [Build] Description: File "/FI_index.jsp" could not be found in the web application.
[wlwBuild] [Build] Warnings found in portalPosadas/AdminUsers/AdminUsersController.jpf:
[wlwBuild] [Build] Warning at line 1962 column 59:
[wlwBuild] [Build] Description: File "/FI_index.jsp" could not be found in the web application.