post #1 of 1
Thread Starter 
I've been puzzling over this for days and searching doesn't seem to give any results. Makes me wonder if it's possible. For example:
Code:
funct functionNAME (Object o) { o+1 };

The point is that The user has to use the identifier 'o' within the curly braces and not some other identifier. This is of course specified by the input in the (Object o) part where 'o' can be anything. Basically the identifier within the curly braces must be the same as the identifier defined in the parameter. I know I can store the matched token and print it out to screen but is it possible to use it as a lexical token itself? Thanks.
Gaming Beast
(17 items)
 
   
CPUMotherboardGraphicsRAM
Intel Core i5 4430 MSI Z87-G41 PC Mate MSI GeForce GTX 660 Twin Frozr OC Corsair Value Select 
Hard DriveHard DriveHard DriveOptical Drive
Samsung 840 Western Digital Caviar Green Seagate Barracuda LiteOn IHAS124-14 24x SATA Internal DVD-RW / DV... 
OSMonitorMonitorKeyboard
Windows 8.1 22" Samsung S22A200B Widescreen LED Monitor Iiyama PLX436S 17" Microsoft SIdewinder X4 
PowerCaseMouseMouse Pad
450W Coolermaster GX 80 Plus EZCOOL Mesh Design Mid Tower Case Razr DeathAdder Razr Goliathus 
Audio
M-Audio Audiophile 2496 
CPUMotherboardGraphicsOS
i7 4700HQ MSI MS-16H2 Intel(R) HD Graphics 4600 Microsoft Windows 8.1 
KeyboardPowerAudio
Steelseries 6-Cell Li-Polymer(4840mAh 52Wh) Sound by Dynaudio, Support 7.1 channel S/PDIF o... 
  hide details  
Reply
Gaming Beast
(17 items)
 
   
CPUMotherboardGraphicsRAM
Intel Core i5 4430 MSI Z87-G41 PC Mate MSI GeForce GTX 660 Twin Frozr OC Corsair Value Select 
Hard DriveHard DriveHard DriveOptical Drive
Samsung 840 Western Digital Caviar Green Seagate Barracuda LiteOn IHAS124-14 24x SATA Internal DVD-RW / DV... 
OSMonitorMonitorKeyboard
Windows 8.1 22" Samsung S22A200B Widescreen LED Monitor Iiyama PLX436S 17" Microsoft SIdewinder X4 
PowerCaseMouseMouse Pad
450W Coolermaster GX 80 Plus EZCOOL Mesh Design Mid Tower Case Razr DeathAdder Razr Goliathus 
Audio
M-Audio Audiophile 2496 
CPUMotherboardGraphicsOS
i7 4700HQ MSI MS-16H2 Intel(R) HD Graphics 4600 Microsoft Windows 8.1 
KeyboardPowerAudio
Steelseries 6-Cell Li-Polymer(4840mAh 52Wh) Sound by Dynaudio, Support 7.1 channel S/PDIF o... 
  hide details  
Reply